combineVerticallyGGplot: Combine vertically multiple 'ggplot'.

View source: R/report_combineVerticallyGGplot.R

combineVerticallyGGplotR Documentation

Combine vertically multiple ggplot.

Description

If the different modules for a subject don't fit in the page, there are automatically split in multiple pages. The margins are extracted across plots to ensure that plots will be probably aligned.

Usage

combineVerticallyGGplot(
  listPlots,
  maxNLines = NULL,
  nCores = 1,
  shiny = FALSE,
  verbose = FALSE,
  reportPerSubject = FALSE
)

Arguments

listPlots

listPlots per subject as created inside the subjectProfileCombine function.

maxNLines

Maximum number of lines for a combined plot, to fit in the page height.
When the different visualizations are combined for each subject, they will be allocated to different pages if the number of lines of the combined visualization is higher than this number.

nCores

Integer containing the number of cores used for the computation (1 by default). If more than 1, computation is parallelized, in this case the package parallel is required.

shiny

logical, set to TRUE (FALSE by default) if the report is generated from a Shiny application. Messages during report creation will be included in the Shiny interface, and it will be mentioned at the end of the report. In this case, the shiny package should be available.

verbose

logical, if TRUE print messages during execution

reportPerSubject

Logical, if TRUE (FALSE by default) export a subject profile report by subject.

Value

a list (by subject) of list (by page) of ggplot object

Author(s)

Laure Cougnaud


patientProfilesVis documentation built on Nov. 18, 2022, 5:12 p.m.