autoplot.TaskSurv: Plot for Survival Tasks

Description Usage Arguments Value Examples

View source: R/TaskSurv.R

Description

Generates plots for mlr3proba::TaskSurv, depending on argument type:

Usage

1
2
## S3 method for class 'TaskSurv'
autoplot(object, type = "target", ...)

Arguments

object

(mlr3proba::TaskSurv).

type

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

...

(any): Additional argument, passed down to $formula of mlr3proba::TaskSurv or the underlying plot functions.

Value

ggplot2::ggplot() object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(mlr3)
library(mlr3viz)
library(mlr3proba)

task = tsk("lung")

head(fortify(task))
autoplot(task)
autoplot(task, rhs = "sex")
autoplot(task, type = "duo")

mlr3viz documentation built on July 2, 2021, 1:07 a.m.