Skip to content

Results Monitoring Surveys PDF report template

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

unhcr-dataviz/rmsdown

Repository files navigation

rmsdown

Lifecycle: experimental R-CMD-check

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.

Features

  • 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

Installation

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

Usage

Getting Started

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

Creating a New Document in RStudio

  1. File → New File → R Markdown
  2. Select “From Template”
  3. Choose the RMS Paged Report template

Custom CSS Classes

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.

Plot Functions

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

Additional UNHCR Tools

Acknowledgements

We extend our gratitude to the creators of the pagedown package that influenced the development of {rmsdown}.

Contribution and Code of Conduct

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.

License

This package is distributed under the MIT License.

About

Results Monitoring Surveys PDF report template

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published