Roy Mwavita

Roy Mwavita

Research Data Analyst • Monitoring & Evaluation Specialist

R Digest Logo

R Digest

A collection of practical lessons learned while working with R for data analysis, data visualization, and Monitoring, Evaluation, Accountability, and Learning (MEAL) systems.

Each issue breaks down real-world techniques used in operational reporting dashboards, custom data transformation pipelines, and dynamic programmatic workflows.

📚 Published Issues

📊 Issue 1

Small ggplot2 Tricks That Make Better Charts

Topics Covered:
  • Grammar of Graphics rules
  • Optimizing geom_col() bars
  • Custom fill palettes & aesthetics
  • Polishing alignments via position_dodge()

A practical engineering guide on improving the structural clarity, contrast mapping, and overall visual communication impact of bar charts in ggplot2.

Download PDF Document

📊 Issue 2

Understanding pivot_longer() and pivot_wider()

Topics Covered:
  • Structural data reshaping concepts in R
  • Converting wide profiles to relational long formats
  • Advanced tidyverse engineering pipelines

A comprehensive functional guide demonstrating how to dynamically transform messy, non-relational survey datasets for fast downstream modeling and visualization.

Download PDF Document

📊 Issue 3

Factors and Ordering Categories in ggplot2

Topics Covered:
  • Deep dive into vector factors in R
  • Explicitly setting and sorting structural factor levels
  • Controlling explicit category mapping scales in ggplot2
  • Creating clear, ordered Likert-scale visualization distributions

A structural analytics guide to managing vector factors to systematically control how categorical groups organize themselves in tables and visualization grids.

Download PDF Document

📊 Issue 4

Do More with Less Code in the Tidyverse

Topics Covered:
  • Applying across() to mutate multiple metrics simultaneously
  • Using functional loops via map() to eliminate manual code loops
  • Deploying reduce() to join collection lists efficiently
  • Writing clean, performant, and maintainable tidyverse scripts

An efficiency manual breaking down methods for reducing code replication by programmatically looping transformations across data frame shapes and complex arrays.

Download PDF Document

2026 Roy Mwavita | Built with Quarto