In R graphics system ggplot2, facet_wrap is a way to wrap a 1d ribbon of panels into 2d shape. Typically, it groups a data set by one or more categorical variables or variables coercible to factor and plots one data group per panel using the same aesthetics mappings.
In R graphics system ggplot2, facet_wrap
is a way to wrap a 1d ribbon of panels into 2d shape. Typically, it groups a data set by one or more categorical variables or variables coercible to factor and plots one data group per panel using the same aesthetics mappings.
Resources for using facet_wrap
:
- The on-line documentation;
- Hadley Wickham's ggplot2: elegant graphics for data analysis discusses faceting in chapter 17.