README.md

ochathemes

GitLab CI Build
Status Codecov Code
Coverage License:
MIT

ochathemes is package providing ggplot2 themes and theme components inspired by OCHA graphics stylebook.

Installation

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")

Using icons from the humicons package

library(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")

Meta



mmusori/ochathemes documentation built on May 29, 2019, 8:36 a.m.