Visualizations for 'mlr3'

Visualization package of the 'mlr3' ecosystem. It features plots for mlr3 objects such as tasks, learners, predictions, benchmark results, tuning instances and filters via the 'autoplot()' generic of 'ggplot2'. The package draws plots with the 'viridis' color palette and applies the minimal theme. Visualizations include barplots, boxplots, histograms, ROC curves, and Precision-Recall curves.


mlr3viz

Package website: release | dev

r-cmd-check CRAN StackOverflow Mattermost

mlr3viz is the visualization package of the mlr3 ecosystem. It features plots for mlr3 objects such as tasks, learners, predictions, benchmark results, tuning instances and filters via the autoplot() generic of ggplot2. The package draws plots with the viridis color palette and applies the minimal theme. Visualizations include barplots, boxplots, histograms, ROC curves, and Precision-Recall curves.

The gallery features a showcase post of the plots in mlr3viz.

Installation

Install the last release from CRAN:

install.packages("mlr3viz")

Install the development version from GitHub:

# install.packages("pak")
pak::pak("mlr-org/mlr3viz")

Resources

The gallery features a showcase post of the visualization functions mlr3viz.

Short Demo

library(mlr3)
library(mlr3viz)

task = tsk("sonar")
learner = lrn("classif.rpart", predict_type = "prob")
rr = resample(task, learner, rsmp("cv", folds = 3), store_models = TRUE)

# Default plot for task
autoplot(task, type = "target")

# ROC curve for resample result
autoplot(rr, type = "roc")

For more example plots you can have a look at the pkgdown references of the respective functions.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mlr3viz")

0.11.2 by Marc Becker, 20 days ago


https://mlr3viz.mlr-org.com, https://github.com/mlr-org/mlr3viz


Report a bug at https://github.com/mlr-org/mlr3viz/issues


Browse source code at https://github.com/cran/mlr3viz


Authors: Michel Lang [aut] , Patrick Schratz [aut] , Raphael Sonabend [aut] , Marc Becker [cre, aut] , Jakob Richter [aut] , Damir Pulatov [ctb] , John Zobolas [aut]


Documentation:   PDF Manual  


LGPL-3 license


Imports checkmate, data.table, ggplot2, mlr3misc, scales, stats, utils, viridis

Depends on mlr3

Suggests bbotk, clue, cluster, GGally, ggdendro, ggfortify, ggparty, glmnet, knitr, lgr, mlr3cluster, mlr3filters, mlr3fselect, mlr3inferr, mlr3learners, mlr3tuning, paradox, partykit, patchwork, precrec, ranger, rpart, testthat, vdiffr, xgboost


Imported by mlr3shiny, mlr3verse.

Suggested by explainer, mlr3automl, mlr3fairness.


See at CRAN