Facetting is a technique for data visualization which makes it easier to compare groups inside your data.
Facet
In the ggplot2
package for R, creating subplots for groups of data is called facetting. When visualizing data, facetting allows groups of data to be rendered alongside each other in order to make it easier to compare them. A facetted plot can be made with facet_wrap()
and facet_grid()
.
Resources
- https://ggplot2.tidyverse.org/reference/facet_wrap.html -
ggplot2
documentation forfacet_wrap()
, with examples. - https://ggplot2.tidyverse.org/reference/facet_grid.html -
ggplot2
documentation forfacet_grid()
, with examples. - http://www.cookbook-r.com/Graphs/Facets_(ggplot2)/ - The R Cookbook guide to facetting plots.