| facet | R Documentation |
Splits a plot into small multiples, one panel for each value of
rows, cols, or both. Panels share their axes unless free_scales
lets them vary. With a single faceting variable, wrap sets how many
panels go in each row.
facet(spec, rows = NULL, cols = NULL, free_scales = "none", wrap = NULL)
spec |
A glyph_spec |
rows |
Row faceting variable: a bare column name, a computed
expression (e.g. |
cols |
Column faceting variable: a bare column name, a computed
expression, or |
free_scales |
"none", "x", "y", "both" |
wrap |
If only one variable, wrap into a grid with this many columns |
Modified glyph_spec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.