Learn R Programming

specmine (version 1.0)

multiplot: Multiplot

Description

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

Usage

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

Run this code
     ## Example of multiplot
     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)

Run the code above in your browser using DataLab