MappedData
MappedData.RdR6 class for mapping variables to data
See also
Other MappedData classes:
MappedDataBoxplot,
MappedDataRangeDistribution,
MappedDataTimeProfile
Public fields
datadata.frame used for mapping
mappinglist of aesthetic mappings
dimensionslist with dimensions of mapping
unitslist with dimensions of mapping
columnClasseslist with class of mapped columns
xlimitsdouble vector limits of primary y axis
ylimitsdouble vector limits of primary y axis
hasResidualMappingflag to indicate if residual mapping is used
residualLabellabel for residuals
Active bindings
hasLLOQMatchbooleanif TRUE data has matched lloq datadataForPlotreturns data used for plotting, may be adjusted in child classes (e.g. 2 axis in MappedDataTimeProfile) check if aesthetic is available in data returns data column for aesthetic adds and update mapping deletes data where mdv is 1
adds new column
isLLOQ.iand updates booleanLLOQMatchadds new columnsyminandymaxif required copy aestheticsgroupby, but only if not explicit set converts Integer columns, which are no factors to double adds new columnresiduals.ifactorize column for group to factor
Methods
Method new()
Create a new MappedData object
Usage
MappedData$new(
data,
mapping,
xscale,
yscale,
groupAesthetics = NULL,
groupOrder = NULL,
direction = "y",
isObserved = TRUE,
xlimits = NULL,
ylimits = NULL,
residualScale = NULL,
residualAesthetic = "y"
)Arguments
datadata.frame used for mapping
mappinglist of aesthetic mappings
xscalescale of x-axis either 'linear' or 'log'
yscalescale of y-axis either 'linear' or 'log'
groupAestheticsvector of aesthetics, which are used for columns mapped with
groupbygroupOrderlabels and order for group aesthetic
directiondirection of plot either "x" or "y"
isObservedA
booleanif TRUE mappings mdv, lloqxlimitslimits for x-axis (may be NULL)
ylimitslimits for y-axis (may be NULL)
residualScalescale of x residuals
residualAestheticaesthetic used for mapping residuals