Rmd template

unhcr_paged()

Create a paged HTML document suitable for printing with UNHCR Brand

unhcr_slide()

UNHCR HTML slide

unhcr_html()

UNHCR HTML template

unhcr_word()

UNHCR word template

unhcr_ppt()

UNHCR ppt template

Gggplot2 themes

unhcr_style_bar()

UNHCR ggplot2 theme for Bar chart

unhcr_style_bar_big()

UNHCR ggplot2 theme for bar chart with big labels for powerpoints

unhcr_style_histo()

UNHCR ggplot2 theme for histogram

unhcr_style_histo_big()

UNHCR ggplot2 theme for histogramm with big labels for powerpoints

unhcr_style_map()

UNHCR ggplot2 theme for maps

unhcr_style_map_big()

UNHCR ggplot2 theme for maps with big labels for powerpoints

unhcr_style_scatter()

UNHCR ggplot2 theme for scatter plot

unhcr_style_scatter_big()

UNHCR ggplot2 theme for scatter plots with big labels for powerpoints

Palette

get_unhcr_palettes()

Get names of all unique palettes provided in unhcr

test_pal

Test palette

test_pal_cont

Define two colors for endpoints of continuous palette

test_pal_div

Define three colors for endpoints of diverging continuous pallete (high, middle, low)

test_pal_op

Define opinionated discrete palette (good, neutral, bad)

Function to apply the palette

scale_color_discrete_unhcr() scale_colour_discrete_unhcr() scale_fill_discrete_unhcr() scale_color_opinionated_unhcr() scale_colour_opinionated_unhcr() scale_fill_opinionated_unhcr() scale_color_diverging_unhcr() scale_colour_diverging_unhcr() scale_fill_diverging_unhcr() scale_color_continuous_unhcr() scale_colour_continuous_unhcr() scale_fill_continuous_unhcr()

Custom color and fill scales Custom coloring and filling functions based on unique color palettes Specific functions include:

  • scale_(color/colour/fill)_discrete_unhcrDiscrete palette with either fixed or dynamically extended number of shades

  • scale_(color/colour/fill)_opinionated_unhcrDiscrete palette with specific values for "good", "bad", and "neutral"

  • scale_(color/colour/fill)_diverging_unhcrContinuous diverging color palette

  • scale_(color/colour/fill)_continuous_unhcrContinuous color palette

Other utilities function

format_si()

Format axis label

left_align()

Left align text for title in ggplot2 object

unhcRstyle

unhcRstyle package