This function is similar to the facet_* family of functions from the ggplot2 package.

plane_wrap(g2, ..., type = c("list", "rect", "circle", "tree", "mirror",
  "matrix"), sync = TRUE)

planes(...)

Arguments

g2

An object of class g2r as returned by g2r.

...

Planes, bare column names or NULL.

type

The type of facet to user.

sync

Wether to sync the planes and main mapping that were passed g2

Type

  • list

  • rect

  • circle

  • mirror

  • tree

  • mirror

Examples

iris %>% g2(asp(Petal.Length, Petal.Width, color = Species)) %>% fig_point() %>% plane_wrap(planes(Species))