Pipe symbol
lhs, rhs | A visualisation and a function to apply to it |
---|
# Instead of layer_points(ggvis(mtcars, ~mpg, ~wt))#> Error in layer_points(ggvis(mtcars, ~mpg, ~wt)): could not find function "layer_points"# you can write mtcars %>% ggvis(~mpg, ~wt) %>% layer_points()#> Error in ggvis(., ~mpg, ~wt): could not find function "ggvis"