Rmd template

unhcr_templ_paged()

Create a paged HTML document suitable for printing with UNHCR Brand

unhcr_templ_slide()

UNHCR HTML slide Loads additional style and template file

unhcr_templ_html()

UNHCR HTML template Loads additional style and template file

unhcr_templ_doc()

UNHCR word template Loads additional style and template file

unhcr_templ_ppt()

UNHCR ppt template Loads additional style and template file

Gggplot2 themes

unhcr_theme()

Basic UNHCR theme for ggplot2

theme_foundation()

Base clean ggplot theme to build from

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

Color palettes

unhcr_pal

unhcr default (web/sRGB) Primary color palette

unhcr_pal_graphic

Scale of all XX preferred colors for graphic creation

unhcr_all_pal

Look-up list of palettes

unhcr_pal_primary

Scale of all 4 preferred colors, Other combinations of UNHCR color palettes

unhcr_all_pal_graphic

Look-up list of palettes

unhcr_pal_blue

UNHCR blue color palette

unhcr_pal_grey

UNHCR grey color palette

unhcr_pal_darkblue

UNHCR darkblue color palette.

unhcr_pal_green

UNHCR greem color palette.

unhcr_pal_red

UNHCR red color palette.

unhcr_pal_yellow

UNHCR yellow color palette.

unhcr_black

UNHCR color black

unhcr_blue

UNHCR color blue

unhcr_darkblue

Preferred color darkblue (as HEX character value)

unhcr_discrete()

Ggplot scale color discrete and continuous palette based on the unhcr_pal_graphic

unhcr_green

Preferred color darkblue (as HEX character value)

unhcr_grey

UNHCR color grey

unhcr_red

Preferred color red (as HEX character value)

unhcr_white

UNHCR color white

unhcr_yellow

Preferred color yellow (as HEX character value)

test_pal

Define discrete palette

test_pal_cont

Define two colors for endpoints of continuous palette

test_pal_div

Define three colors for endpoints of diverging continuous palette

test_pal_op

Define opinionated discrete palette

Other utilities function

format_si()

Format axis label

left_align()

Left align text for title in ggplot2 object

plot_col()

Plot a vector of colors (as circles or rectangles)

plot_shape()

Plot a shape in a certain color

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

scale_x_comma()

Helper functions to stylize axis labels: commas on X

scale_x_percent()

Helper functions to stylize axis labels

scale_y_comma()

Helper functions to stylize axis labels: commas on Y

update_geom_font_defaults()

Update matching font defaults for text geoms

Palette utilities function

unhcr_scale_fill_discrete()

Discrete fill scales based on the UNHCR graphic palette

get_unhcr_palettes()

Get names of all unique palettes provided in unhcr

col2hex()

col2hex color conversion function in grDevices

getpal_key()

Get a palette or list of palettes by keyword

isCol()

isColl color conversion function in grDevices

isHexCol()

isHexCol color conversion function in grDevices

usecol()

Use a color palette (as is)

newpal()

Define new color palettes.

parse_pal()

Parse a palette input: Color getting functions

rgb2hex()

rgb2hex color conversion function in grDevices

seecol()

Plot the colors of a palette or multiple palettes

unhcRstyle

unhcRstyle package