Generic for grid facets
Usage
split_grid(
plot,
...,
rows = NULL,
cols = NULL,
scales = "fixed",
space = "fixed",
axes = NULL
)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")?
- axes
Axis repetition passed to
ggplot2::facet_grid():"all"/"all_x"/"all_y"repeat axes on every panel (ggplot2 >= 3.5).NULL= axes on the outer edges only.
Examples
plotit(iris, encode(x = Sepal.Width, y = Sepal.Length)) |>
mark_point() |>
split_grid(rows = ggplot2::vars(Species))