getGuestValuesFromDataMapping: getGuestValuesFromDataMapping

View source: R/plot-ddiratio.R

getGuestValuesFromDataMappingR Documentation

getGuestValuesFromDataMapping

Description

Get a data.frame with Guest et al. ratio limits from data and its DDIRatioDataMapping

Usage

getGuestValuesFromDataMapping(data, dataMapping)

Arguments

data

A data.frame to use for plot.

dataMapping

A DDIRatioDataMapping object mapping x, y and aesthetic groups to their variable names of data.

Value

A data.frame with x, ymin and ymax defining Guest et al. limits

Examples

# Get the data.frame of Guest et al. limits
ddiData <- data.frame(x = c(1, 2, 1, 2, 3), y = c(5, 0.2, 2, 3, 4))

getGuestValuesFromDataMapping(
  data = ddiData,
  dataMapping = DDIRatioDataMapping$new(x = "x", y = "y")
)


Open-Systems-Pharmacology/TLF-Library documentation built on Feb. 8, 2025, 11:22 a.m.