getAxisLimPlot: Get axis limits for a 'ggplot' plot from the input dataset.

Description Usage Arguments Value

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

Description

Get axis limits for a ggplot plot from the input dataset.

Usage

1
2
3
4
5
6
7
8
9
getAxisLimPlot(
  data,
  xVar,
  yVar,
  xLim = NULL,
  yLim = NULL,
  facetPars = NULL,
  refLineData = NULL
)

Arguments

data

Data.frame with data.

xVar

String with column of data containing x-variable.

yVar

String with column of data containing y-variable.

xLim

Numeric vector of length 2 with limits for the x/y axes.

yLim

Numeric vector of length 2 with limits for the x/y axes.

facetPars

List with facetting parameters, passed to the facetting function. Variables should be specified as character or formula. For 'wrap' facetting (facetType is 'wrap'), if the layout is not specified via nrow/ncol, 2 columns are used by default.

refLineData

Data used for the reference lines, as output of the getDataReferenceLines function.

Value

Data.frame with limits of the:

for each element of the facetting variable (if any).


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