It is mandatory to install Europace fronts beforehand.
# install.packages("devtools")
devtools::install_github("deadhand7/data-viz-r")
The package provides a palette based on Europace color codes and a custom theme which uses the Europace fronts. Additionally, some flexible quick-access plotting functions are included.
ep.theme()
scale.fill.ep()
scale.color.ep
plot.histogram
plot.density
plot.boxplot
iris %>%
ggplot(aes(x = Species, y = Sepal.Width, fill = Species)) +
geom_violin() +
scale.fill.ep('cool') +
ep.theme()
plot.histogram(df = mtcars, x = mpg, binwidth = 1, ticks = 5)
DataVizR::plot.histogram(df = iris, x = Petal.Width, binwidth = 1, facet = Species, ticks = 3)
plot.density(df = mtcars, x = qsec)
plot.boxplot(df = iris, x = Species, y = Sepal.Length, fill = Species, x.lab = 'Species', ticks = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.