This is an utility function to output a decorated grob (gTree
) object
Arguments
- grobs
a grid grob (
gTree
) object, optionallyNULL
if only a grob with the decoration should be shown.- outpath
specify full path to output pdf to
BCE
orBEE
- pagesize
name of
pagesize
(print size) and orientation, accepted values include"a4.landscape"
,"a4.portrait"
,"letter.portrait"
and"letter.landscape"
(default)
Author
Chendi Liao (liaoc10) chendi.liao@roche.com
Examples
if (FALSE) { # \dontrun{
library(ggplot2)
g <- list(
ggplotGrob(
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
geom_point()
),
ggplotGrob(
ggplot(iris, aes(x = Sepal.Length, y = Petal.Length, color = Species)) +
geom_point()
),
ggplotGrob(
ggplot(iris, aes(x = Sepal.Length, y = Petal.Width, color = Species)) +
geom_point()
)
)
# output to pdf
as_pdf(g, "~/example_aspdf1.pdf")
} # }