Description Usage Arguments References Examples
Multiplot from ggplot2 - function taken from (see references).
1 |
plots |
list with the plots to display. |
plotlist |
plot list. |
file |
file. |
cols |
number of columns. |
layout |
layout of the plot. |
http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.