pipe: Pipe graphics

%>%R Documentation

Pipe graphics

Description

Like dplyr, ggvis also uses the pipe function, %>% to turn function composition into a series of imperative statements.

Arguments

lhs, rhs

A visualisation and a function to apply to it

Examples

# Instead of
layer_points(ggvis(mtcars, ~mpg, ~wt))
# you can write
mtcars %>% ggvis(~mpg, ~wt) %>% layer_points()

rstudio/ggvis documentation built on Feb. 5, 2024, 9:13 p.m.