plot_arrange | R Documentation |
This is similar to gridExtra::grid.arrange()
, but it works on base R
plots instead of ggplot objects.
plot_arrange(..., nrow, ncol, par_args = character(0))
... |
(Expressions) Functions that create plots. |
nrow |
(Integer) Number of rows to arrange plots into. |
ncol |
(Integer) Number of columns to arrange plots into. |
par_args |
(List) A |
Plots arranged in a grid.
Desi Quintans (http://www.desiquintans.com)
plot_arrange(plot(Sepal.Length ~ Sepal.Width, data = iris),
plot(Petal.Length ~ Petal.Width, data = iris),
plot(Petal.Length ~ Sepal.Length, data = iris),
plot(Petal.Width ~ Sepal.Width, data = iris),
nrow = 2, ncol = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.