Learn R Programming

g2r (version 0.1.0)

plane: Plane

Description

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

Usage

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

Run this code
# NOT RUN {
iris %>%
  g2(asp(Petal.Length, Petal.Width, color = Species)) %>% 
  fig_point() %>%
  plane_wrap(planes(Species)) 

# }

Run the code above in your browser using DataLab