Skip to contents

R6 class for mapping x, y, GroupMapping and pkRatio lines variables to data

Super classes

tlf::XYDataMapping -> tlf::XYGDataMapping -> PKRatioDataMapping

Public fields

lines

list of ratio limits to plot as horizontal lines

error

mapping error bars around scatter points

Methods

Inherited methods


    Method new()

    Create a new PKRatioDataMapping object

    Usage

    PKRatioDataMapping$new(
      lines = DefaultDataMappingValues$pkRatio,
      uncertainty = NULL,
      error = NULL,
      ...
    )

    Arguments

    lines

    List of ratio limits to display as horizontal lines

    uncertainty

    mapping error bars around scatter points. Deprecated parameter replaced by error.

    error

    mapping error bars around scatter points

    ...

    parameters inherited from XYGDataMapping

    Returns

    A new PKRatioDataMapping object


    Method checkMapData()

    Check that data variables include map variables

    Usage

    PKRatioDataMapping$checkMapData(data, metaData = NULL)

    Arguments

    data

    data.frame to check

    metaData

    list containing information on data

    Returns

    A data.frame with map and defaultAes variables. Dummy variable defaultAes is necessary to allow further modification of plots.


    Method clone()

    The objects of this class are cloneable with this method.

    Usage

    PKRatioDataMapping$clone(deep = FALSE)

    Arguments

    deep

    Whether to make a deep clone.