# Using magrittr pipes

#### 2017-12-20

Since each generator function expects the graph object as its first argument one can make use of the fantastic magrittr pipes to improve reading. See the documentation of the magrittr package for details on the forward-pipe operator.

library(grapherator)
library(magrittr)

set.seed(1) # reproducability
g = graph(lower = 0, upper = 10) %>%
do.call(gridExtra::grid.arrange, c(plot(g), list(nrow = 1)))