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

plotlist

List of plots to display.

nrow, ncol

The number of rows and columns, respectively.

rel_widths, rel_heights

The Numerical vector of relative columns widths and rows heights, respectively.

labels

List of labels to be added to the plots.

hjust, vjust

Adjusts the horizontal and vertical position of each label.

Value

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)
# }