Learn how to create data visualizations in R using ggplot2's layered Grammar of Graphics approach. Everything composes with the operator.
Tutorial series
R Data Visualization
11 tutorials — follow in order for the best learning path.
- ggplot2 Basics, Learn how to create data visualizations in R
- Introduction to ggplot2
Learn the basics of ggplot2, the most popular data viz package in R. Covers the grammar of graphics, aesthetic mappings, and creating your first plots.
- Customizing ggplot2 Charts: Themes, Colors, and Labels
Customizing ggplot2 charts step by step: master themes, color scales, axis labels, legends, and faceting to build publication-ready data visualizations in R.
- Customizing ggplot2 Themes
Learn to customize ggplot2 themes with theme(), element_text(), element_line(), and element_rect(). Build reusable themes for data visualizations.
- Faceting in ggplot2, Split your plots into panels to compare
Split your plots into panels to compare data subsets side by side. Learn facet_wrap() and facet_grid() with practical examples.
- Facets, Scales, and Themes in ggplot2
Learn to create multi-panel plots with facets, customize scales for precise axis and color control, and apply professional themes in ggplot2.
- Advanced ggplot2 Geoms: Box, Violin, and Density Plots in R
Master advanced ggplot2 geometries in R including box plots, violin plots, density plots, and multi-layer visualizations for exploring distributions.
- Maps with ggplot2: Create Choropleth and Bubble Maps in R
Create maps with ggplot2 in R: build choropleth and bubble maps using sf, customize projections, and design publication-ready spatial visualizations.
- Interactive Plots with plotly
Learn how to create interactive plots with plotly in R. Convert ggplot2 charts, customize tooltips, and build interactive dashboards.
- Publication-Ready Figures in R
Learn how to export ggplot2 figures that meet journal standards—correct dimensions, DPI, embedded fonts, and colorblind-safe palettes.
- Creating Animated Charts with gganimate and ggplot2 in R
Create animated charts with gganimate in R. Transform ggplot2 plots into smooth, shareable animations using transitions, reveals, and view follow.