-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
49 lines (37 loc) · 1.33 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# vikingR
<!-- badges: start -->
[![DOI](https://zenodo.org/badge/445624213.svg)](https://zenodo.org/badge/latestdoi/445624213)
<!-- badges: end -->
vikingR creates a Viking era ggplot palette. Inspired by this [publication](https://tinyurl.com/bdfjhv25). The National Museum of Denmark working with Chemists were able to recreate some of the colours that were common in the Viking era. Of course we can not know for sure if this were the only colours available at the time.
## Installation
You can install the development version of vikingR from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("DrMattG/vikingR")
```
## Example
This is the basic usage:
```{r example, warning=FALSE, message=FALSE}
library(vikingR)
library(tidyverse, quietly = TRUE)
data("topNorName1880to2020")
topNorName1880to2020 |>
ggplot(aes(reorder(name,n),n, fill=name)) +
geom_histogram(stat="identity") +
scale_fill_viking(palette = "Alle", guide = "none")+
labs(x="", y= "Frequency in the top 10 boys names in Norway")+
coord_flip()+
theme_classic()
```