ochathemes
is package providing ggplot2
themes and theme components
inspired by OCHA graphics stylebook.
This package is not on yet on CRAN and to install it, you will need the
remotes
package.
## install.packages("remotes")
remotes::install_gitlab("dickoa/ochathemes")
humicons
packagelibrary(ochathemes)
library(humicons)
library(ggplot2)
ggplot(mtcars, aes(mpg, wt)) +
geom_text(family = font_hum, label = humicons("un-vehicle"), size = 7, color = "#418FDE") +
labs(title = "Using the UN-Vehicle icon in ggplot2", x = "", y = "") +
theme_ocha(grid = "XY")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.