Create high-quality, UNHCR-branded PDFs for Results Monitoring Surveys
(RMS) with the {rmsdown}
R package. This package leverages the
{pagedown}
framework to deliver consistent and professional reports
aligned with UNHCR’s brand guidelines. Additionally, it includes a
dedicated plot function for branded charts.
- A specialized R Markdown template for RMS reports
- Custom CSS styling with Bootstrap 5 integration
- A plot function for consistent and branded visualizations
- Alignment with UNHCR’s branding and guidelines
Install the development version of {rmsdown}
from GitHub with:
# If pak is not yet installed, uncomment the following line:
# install.packages("pak")
pak::pkg_install("unhcr-dataviz/rmsdown")
To use the {rmsdown}
template, specify the rmsdown::paged_report
format in the YAML header of your R Markdown file:
---
title: "Results Monitoring Surveys"
subtitle: "Country Year"
output: rmsdown::paged_report
---
- File → New File → R Markdown
- Select “From Template”
- Choose the RMS Paged Report template
The {rmsdown}
template incorporates Bootstrap 5 for styling. Refer to
the Bootstrap
documentation
for details on available CSS classes.
For section-specific styling, use the following format:
###### [1.]{.big-num} Introduction {.section-title}
# Introduction {.hide-h1}
## The Forced Displacement Survey
The following content starts here.
The package includes a plot function to help you create consistent and branded charts. More functions will be added in future updates.
library(ggplot2)
df_percent <- data.frame(
category = c("Category A", "Category B", "Category C", "Category D"),
value = c(0.3, 0.08, 0.6, 0.75)
)
simple_bar_chart(df_percent, cat = "category", val = "value")
- unhcrthemes: UNHCR branded ggplot2 theme and color palettes
- unhcrdown: UNHCR templates for R Markdown
- refugees: Access to UNHCR Refugee Data Finder API
- quarto-html-unhcr: Quarto extension for UNHCR branded HTML documents
- quarto-revealjs-unhcr: Quarto extension for UNHCR branded presentations
- Data Visualization Platform: UNHCR’s data visualization guidelines and tools
We extend our gratitude to the creators of the
pagedown
package that
influenced the development of {rmsdown}
.
Contributions to {rmsdown}
are highly valued. To ensure a welcoming
and inclusive community, we follow our Contributor Code of
Conduct.
If you have suggestions, uncover bugs, or envision new features, kindly
submit an issue on
GitHub.
This package is distributed under the MIT License.