Generic for grid facets
Arguments
- plot
A plotit object.
- ...
Unnamed arguments are shorthand for
rows(e.g.Speciesbecomesrows = vars(Species)). Named arguments (labeller,switch, ...) are passed through toggplot2::facet_grid().- rows, cols
Variables to facet by, wrapped in
ggplot2::vars().- scales
Should scales be fixed ("fixed"), free ("free"), or free in one dimension ("free_x", "free_y")?
- space
Should the space be fixed ("fixed"), free ("free"), or free in one dimension ("free_x", "free_y")?
Examples
plotit(iris, encode(x = Sepal.Width, y = Sepal.Length)) |>
mark_point() |>
split_grid(rows = ggplot2::vars(Species))