Description Usage Arguments Value
Utility function to facet a plot
1 2 3 4 5 6 7 | plot_facets(
plot,
facet_rows = c(),
facet_columns = c(),
facet_type = "grid",
...
)
|
plot |
ggplot object |
facet_rows |
column names from original data frame to be used in facet rows if facet_type == "grid" else columns to be faceted |
facet_columns |
column names from original data frame to be used in facet columns if facet_type == "grid" else columns to be faceted |
facet_type |
either "wrap" or "grid" |
... |
params passed into either facet_wrap or facet_grid, depending on facet_type parameter |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.