This is a helper function to arrange ggplot2 objects in the metan package. It imports plot_grid. For a complete usability use that function.

arrange_ggplot(
...,
plotlist = NULL,
nrow = NULL,
ncol = NULL,
rel_widths = 1,
rel_heights = 1,
labels = NULL,
hjust = -0.5,
vjust = 1.5
)

## Arguments

... An object of class 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.

## Examples

# \donttest{
library(ggplot2)
library(metan)
p1 <- ggplot(mtcars, aes(wt, mpg)) +
geom_point()

p2 <- ggplot(mpg, aes(class, hwy)) +
geom_boxplot()

arrange_ggplot(p1, p2)# }