getSizePlotClinData: Get dimensions for a clinical data plot

Description Usage Arguments Value Author(s)

View source: R/plots-utility-facets.R

Description

Get dimensions for a clinical data plot

Usage

1
2
3
4
5
6
7
8
9
getSizePlotClinData(
  width = NULL,
  height = NULL,
  gg = NULL,
  nrow = 1L,
  ncol = 1L,
  legend = TRUE,
  legendPosition = "right"
)

Arguments

width

Numeric, width of the plot in pixels, 700 by default.

height

Numeric, height of the plot in pixels, 700 by default.

gg

ggplot

nrow

single-length integer specifying the number of facet rows in the plot. (default = 1) Overwritten if gg is specified.

ncol

single-length integer specifying the number of facet columns in the plot. (default = 1) Overwritten if gg is specified.

legend

Logical, if TRUE (by default) a legend is available in the plot.

legendPosition

String with position of the legend, 'right' by default.

Value

Numeric vector with width ('width') and height ('height') of the plot in pixels.

Author(s)

Laure Cougnaud


clinDataReview documentation built on July 14, 2021, 5:08 p.m.