Learn R Programming

mlr3viz (version 0.5.3)

autoplot.TaskDens: Plot for Density Tasks

Description

Generates plots for mlr3proba::TaskDens.

Usage

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

Arguments

type

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

...

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

Value

ggplot2::ggplot() object.

Examples

Run this code
# NOT RUN {
library(mlr3)
library(mlr3proba)
task = tsk("precip")

head(fortify(task))
autoplot(task, bins = 15)
autoplot(task, type = "freq", bins = 15)
autoplot(task, type = "overlay", bins = 15)
autoplot(task, type = "freqpoly", bins = 15)
# }

Run the code above in your browser using DataLab