multiPlot: Multi Plot

Description Usage Arguments Examples

Description

Takes mutliple ggplots and aranges them using grid.layout. The result can be saved using standard png and pdf commands.

Usage

1
multiPlot(plots, rows = 1, cols = 1)

Arguments

plots

A list of plots to be ploted

rows

The number of rows to plot

cols

The number of columns to plot

Examples

1
2
3
4
a<-data.frame(a=runif(100),b=runif(100),x=seq(100))
p<-c(ggplot(a,aes(x=x,y=a))+geom_points(),
     ggplot(a,aes(x=x,y=b))+geom_points())
multiPlot(p,2)

alexjgriffith/CCCA documentation built on May 10, 2019, 8:52 a.m.