print.ggedit: Print ggedit objects

Description Usage Arguments Examples

View source: R/print.ggedit.R

Description

Plots lists of ggplot2 plot objects layout functionality.

Usage

1
2
## S3 method for class 'ggedit'
print(x, layout = NULL, byrow = FALSE, ...)

Arguments

x

list of ggplot2 plot objects

layout

matrix, layout of plots like in layout, if NULL then a default layout is used, Default: NULL

byrow

boolean, argument passed to default layout (when layout is NULL), used to transpose the output.

...

not used

Examples

1
2
3
4
5
6
7
8
9
p <- as.gglist(pList[1:2])
p

p1 <- p+geom_hline(aes(yintercept=3))
p1

print(p1,byrow=TRUE)

print(p1,layout = matrix(c(2,2,NA,1),ncol=2))

ggedit documentation built on July 8, 2020, 5:34 p.m.