powered by
This is a helper function to arrange ggplot2 objects in the metan package. It imports plot_grid. For a complete usability use that function.
plot_grid
arrange_ggplot( ..., plotlist = NULL, nrow = NULL, ncol = NULL, rel_widths = 1, rel_heights = 1, labels = NULL, hjust = -0.5, vjust = 1.5 )
An object of class gg
gg
List of plots to display.
The number of rows and columns, respectively.
The Numerical vector of relative columns widths and rows heights, respectively.
List of labels to be added to the plots.
Adjusts the horizontal and vertical position of each label.
None.
# NOT RUN { library(ggplot2) library(metan) p1 <- ggplot(mtcars, aes(wt, mpg)) + geom_point() p2 <- ggplot(mpg, aes(class, hwy)) + geom_boxplot() arrange_ggplot(p1, p2) # }
Run the code above in your browser using DataLab