Learn R Programming

g2r (version 0.1.0)

sync: Sync & Unsync

Description

Synchronises variables across planes (plane_wrap), in order to have them share scales.

Usage

sync(g2, ...)

unsync(g2, ...)

Arguments

g2

An object of class g2r as returned by g2r.

...

Bare Column names of variables to synchronise.

Details

By default plane_wrap will sync variables. You can unsync them if undesired.

Examples

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

# }

Run the code above in your browser using DataLab