R/TaskDens.R
autoplot.TaskDens.Rd
Generates plots for mlr3proba::TaskDens.
# S3 method for TaskDens autoplot(object, type = "dens", ...)
(mlr3proba::TaskDens).
(character(1)): Type of the plot. Available choices:
character(1)
"dens": histogram density estimator (default) with ggplot2::geom_histogram().
"dens"
ggplot2::geom_histogram()
"freq": histogram frequency plot with ggplot2::geom_histogram().
"freq"
"overlay": histogram with overlaid density plot with ggplot2::geom_histogram() and ggplot2::geom_density().
"overlay"
ggplot2::geom_density()
"freqpoly": frequency polygon plot with ggplot2::geom_freqpoly.
"freqpoly"
ggplot2::geom_freqpoly
(any): Additional arguments, possibly passed down to the underlying plot functions.
any
ggplot2::ggplot() object.
ggplot2::ggplot()
library(mlr3) library(mlr3proba) task = tsk("precip") head(fortify(task)) #> precip #> 1: 67.0 #> 2: 54.7 #> 3: 7.0 #> 4: 48.5 #> 5: 14.0 #> 6: 17.2autoplot(task, bins = 15) autoplot(task, type = "freq", bins = 15) autoplot(task, type = "overlay", bins = 15) autoplot(task, type = "freqpoly", bins = 15)