Draw a figure using a group of ggplot objects

drawFigs(
  pList,
  layout.dim = NULL,
  common.legend = FALSE,
  legend.position = "right",
  ...
)

Arguments

pList

a list with component ggplot objects.

layout.dim

a integer vector with length 2, the layout of subplots in rows and columns.

common.legend

a logical value, whether use common legend for all subplots.

legend.position

a string, the position of legend.

...

other arguments that pass to ggarrange.

Value

return a new ggplot object.