powered by
Generates plots for mlr3proba::TaskSurv, depending on argument type:
type
"target": Calls GGally::ggsurv() on a survival::survfit() object.
"target"
GGally::ggsurv()
survival::survfit()
"duo": Passes data and additional arguments down to GGally::ggduo(). columnsX is target, columnsY is features.
"duo"
GGally::ggduo()
columnsX
columnsY
"pairs": Passes data and additional arguments down to GGally::ggpairs(). Color is set to target column.
"pairs"
GGally::ggpairs()
# S3 method for TaskSurv autoplot(object, type = "target", ...)
(mlr3proba::TaskSurv).
(character(1)): Type of the plot. Available choices:
character(1)
(any): Additional argument, passed down to $formula of mlr3proba::TaskSurv or the underlying plot functions.
any
$formula
ggplot2::ggplot() object.
ggplot2::ggplot()
# NOT RUN { library(mlr3) library(mlr3viz) library(mlr3proba) task = tsk("lung") head(fortify(task)) autoplot(task) autoplot(task, rhs = "sex") autoplot(task, type = "duo") # }
Run the code above in your browser using DataLab