getWidthPlot: Get width for a plot for a certain page layout

View source: R/miscellaneous.R

getWidthPlotR Documentation

Get width for a plot for a certain page layout

Description

Get width for a plot for a certain page layout

Usage

getWidthPlot(
  margin = subjectProfileReportFormat()$margin,
  landscape = subjectProfileReportFormat()$landscape,
  aspectRatio = subjectProfileReportFormat()$aspectRatio
)

Arguments

margin

Numeric of length 1, with margin in inches.

landscape

Logical, if TRUE the created report is in landscape format. FALSE by default, the report is created in portrait format.

aspectRatio

Numeric of length 1 (0.75 by default) with ratio between size of image in inches (derived from specified margin, landscape and heightLineIn) and real size for exported image.

Value

width for the plot in inches

Author(s)

Laure Cougnaud


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