drawFigs: Draw a figure using a group of ggplot objects

View source: R/Visualization.R

drawFigsR Documentation

Draw a figure using a group of ggplot objects

Description

Draw a figure using a group of ggplot objects

Usage

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.


PRECAST documentation built on May 29, 2024, 3 a.m.