BoxWhiskerDataMapping | R Documentation |
R6 class for mapping y
, GroupMapping
, boxWhiskerLimits
and outlierLimits
to data
tlf::XYDataMapping
-> tlf::XYGDataMapping
-> BoxWhiskerDataMapping
outlierLimits
List of minOutlierLimit
and maxOutlierLimit
functions
outside which data
is flagged as outlier
boxWhiskerLimits
List of ymin
, lower
, middle
, upper
and ymax
functions
calculated on data
to obtain box whiskers
new()
Create a new BoxWhiskerDataMapping
object
BoxWhiskerDataMapping$new( x = NULL, y, ymin = tlfStatFunctions$`Percentile5%`, lower = tlfStatFunctions$`Percentile25%`, middle = tlfStatFunctions$`Percentile50%`, upper = tlfStatFunctions$`Percentile75%`, ymax = tlfStatFunctions$`Percentile95%`, minOutlierLimit = tlfStatFunctions$`Percentile25%-1.5IQR`, maxOutlierLimit = tlfStatFunctions$`Percentile75%+1.5IQR`, ... )
x
Name of x variable to map Default value is NULL in case of a unique box in the boxplot.
y
Name of y variable to map
ymin
Name of function used for calculating lower whisker.
Default value is Percentile5%
.
lower
Name of function used for calculating lower line of box
Default value is Percentile25%
.
middle
Name of function used for calculating middle line
Default value is Percentile55%
.
upper
Name of function used for calculating upper line of box
Default value is Percentile75%
.
ymax
Name of function used for calculating upper whisker
Default value is Percentile95%
.
minOutlierLimit
Name of function used for calculating lower outlier limit
Default value is Percentile25-1.5IQR%
.
maxOutlierLimit
Name of function used for calculating upper outlier limit
Default value is Percentile75+1.5IQR%
.
...
parameters inherited from XYGDataMapping
A new BoxWhiskerDataMapping
object
getBoxWhiskerLimits()
Get a data.frame with box-whisker limit by group
BoxWhiskerDataMapping$getBoxWhiskerLimits(data)
data
data.frame to check
A data.frame with ymin
, lower
, middle
, upper
, ymax
variables.
getOutliers()
Get a data.frame flagging outliers
BoxWhiskerDataMapping$getOutliers(data)
data
data.frame to check
A data.frame with minOutliers
and maxOutliers
variables.
Values not flagged are NA
in the outliers variables
clone()
The objects of this class are cloneable with this method.
BoxWhiskerDataMapping$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other DataMapping classes:
CumulativeTimeProfileDataMapping
,
DDIRatioDataMapping
,
GroupMapping
,
Grouping
,
HistogramDataMapping
,
ObsVsPredDataMapping
,
ObservedDataMapping
,
PKRatioDataMapping
,
PieChartDataMapping
,
QQDataMapping
,
RangeDataMapping
,
ResVsPredDataMapping
,
ResVsTimeDataMapping
,
TimeProfileDataMapping
,
TornadoDataMapping
,
XYDataMapping
,
XYGDataMapping
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.