Faceting draws one panel per level of a grouping variable, laid out in a grid. Comparing many small panels that share a scale is often clearer than overplotting every group in one panel.
Usage
orb_facet(by, ncol = NULL, scales = c("fixed", "free_x", "free_y", "free"))Examples
orb(mtcars, x = wt, y = mpg) + orb_points() + orb_facet(cyl)
#> <orb_spec>
#> data: 32 rows x 11 columns
#> mapping: x, y
#> layers: points
orb(mtcars, x = wt, y = mpg) + orb_points() +
orb_facet(cyl, ncol = 3, scales = "free")
#> <orb_spec>
#> data: 32 rows x 11 columns
#> mapping: x, y
#> layers: points