pipe: Pipe graphics

Description Arguments Examples

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

1
2
3
4
5
6
# Instead of
dplyr::mutate(dplyr::filter(iris, Species == "versicolor"),
"Sample" = paste0(Species, dplyr::row_number()))
# You can write
dplyr::filter(iris, Species == "versicolor") %>%
dplyr::mutate("Sample" = paste0(Species, "_", dplyr::row_number()))

jdgagnon/plotGrouper documentation built on May 14, 2019, 11:12 a.m.