R6 class for mapping x
, bins
, binwidth
,stack
and distribution
to data
See also
Other DataMapping classes:
BoxWhiskerDataMapping
,
CumulativeTimeProfileDataMapping
,
DDIRatioDataMapping
,
GroupMapping
,
Grouping
,
ObsVsPredDataMapping
,
ObservedDataMapping
,
PKRatioDataMapping
,
PieChartDataMapping
,
QQDataMapping
,
RangeDataMapping
,
ResVsPredDataMapping
,
ResVsTimeDataMapping
,
TimeProfileDataMapping
,
TornadoDataMapping
,
XYDataMapping
,
XYGDataMapping
Super classes
tlf::XYDataMapping
-> tlf::XYGDataMapping
-> HistogramDataMapping
Public fields
frequency
logical defining if histogram displays a frequency in y axis
stack
logical defining if histogram bars should be stacked
bins
number of bins or binning values/methods passed on
ggplot2::geom_histogram
binwidth
width of bins passed on
ggplot2::geom_histogram
. Overwritesbins
distribution
Name of distribution to fit to the data. Only 2 distributions are currently available:
"normal"
and"logNormal"
Methods
Inherited methods
Method new()
Create a new HistogramDataMapping
object
Usage
HistogramDataMapping$new(
frequency = FALSE,
stack = FALSE,
bins = NULL,
binwidth = NULL,
distribution = NULL,
...
)
Arguments
frequency
logical defining if histogram displays a frequency in y axis
stack
logical defining if histogram bars should be stacked
bins
argument passed on
ggplot2::geom_histogram
binwidth
width of bins passed on
ggplot2::geom_histogram
. Overwritesbins
distribution
Name of distribution to fit to the data. Only 2 distributions are currently available:
"normal"
and"logNormal"
...
parameters inherited from
XYGDataMapping