Member-only story

Creating Multiple Data Graphs in R programming

Arrange your visualizations to fit on your pages and dashboards

Pierre DeBois
5 min readJun 3, 2022
Patchwork is one of several multi-graph options in R Programming

If you have multiple graphs at once, you want the best options that let your graphs tell a story. There are a few options available for R programming that can be tailored to your data and the amount of information you need to be associated with the varying graphs. Using any of these can enhance your visualization choices for telling a story with data while conveniently fitting within the data source formats you have available.

Facets

I mentioned facets in my ggplot post on basic visualization, but we can go into a little more detail on what facets are and what they do. Facets are arguments in ggplot that can display multiple visuals according to subsets within the dataset being called by ggplot. They are meant for sharing multiple plots, so they are a good starting point for planning your visualization storytelling.

The ggplot library contains three kinds of facet calls:

facet_null is a default setting for displaying one plot.

facet_wrap operates like a text wrap in a word document — it wraps a line of graphs to make the second row of graphs, and

--

--

Pierre DeBois
Pierre DeBois

Written by Pierre DeBois

#analytics |#datascience |#JS |#rstats |#marketing services for #smallbiz | #retail | #nonprofits Contrib @CMSWire @smallbiztrends #blackbusiness #BLM

No responses yet