Skip to contents

Generates plots for mlr3proba::TaskDens.

Usage

# S3 method for TaskDens
autoplot(object, type = "dens", ...)

Arguments

object

(mlr3proba::TaskDens).

type

(character(1)): Type of the plot. Available choices:

...

(any): Additional arguments, possibly passed down to the underlying plot functions.

Value

ggplot2::ggplot() object.

Theme

The theme_mlr3() and viridis color maps are applied by default to all autoplot() methods. To change this behavior set options(mlr3.theme = FALSE).

Examples

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.2
autoplot(task, bins = 15)

autoplot(task, type = "freq", bins = 15)

autoplot(task, type = "overlay", bins = 15)

autoplot(task, type = "freqpoly", bins = 15)