multiplot: Multiplot

Description Usage Arguments References Examples

View source: R/graphics.R

Description

Multiplot from ggplot2 - function taken from (see references).

Usage

1
multiplot(plots, plotlist = NULL, file, cols = 1, layout = NULL)

Arguments

plots

list with the plots to display.

plotlist

plot list.

file

file.

cols

number of columns.

layout

layout of the plot.

References

http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
     ## Example of multiplot
	 library(specmine.datasets)
     data(cachexia)
     pca.result = pca_analysis_dataset(cachexia)
     plot1 = pca_scoresplot2D(cachexia, pca.result, "Muscle.loss", 
	ellipses = TRUE)
     plot2 = pca_scoresplot2D(cachexia, pca.result, "Muscle.loss", 
	ellipses = FALSE, labels = TRUE)
     plts = list(plot1,plot2)
     multiplot(plts, cols = 2)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.