Learn R Programming

⚠️There's a newer version (0.10.1) of this package.Take me there.

mlr3viz

Package website: release | dev

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("mlr3")

Install the development version from GitHub:

remotes::install_github("mlr-org/mlr3viz")

Resources

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

Short Demo

library(mlr3)
library(mlr3viz)

task = tsk("pima")
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.

Copy Link

Version

Install

install.packages('mlr3viz')

Monthly Downloads

4,111

Version

0.8.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

March 5th, 2024

Functions in mlr3viz (0.8.0)

mlr3viz-package

mlr3viz: Visualizations for 'mlr3'
autoplot.PredictionClust

Plots for Cluster Predictions
autoplot.TaskClust

Plots for Clustering Tasks
reexports

Objects exported from other packages
autoplot.TaskRegr

Plots for Regression Tasks
autoplot.LearnerClassifCVGlmnet

Plots for GLMNet Learners
autoplot.OptimInstanceSingleCrit

Plots for Optimization Instances
autoplot.Filter

Plots for Filter Scores
autoplot.LearnerClustHierarchical

Plots for Hierarchical Clustering Learners
autoplot.LearnerClassifRpart

Plots for Rpart Learners
autoplot.PredictionClassif

Plots for Classification Predictions
autoplot.LearnerClassif

Plot for Classification Learners
autoplot.BenchmarkResult

Plots for Benchmark Results
autoplot.LearnerRegr

Plot for Regression Learners
as_precrec

Convert to 'precrec' Format
autoplot.TuningInstanceSingleCrit

Plots for Tuning Instances
predict_grid

Generates a data.table of evenly distributed points.
plot_learner_prediction

Plots for Learner Predictions
autoplot.TaskClassif

Plots for Classification Tasks
autoplot.PredictionRegr

Plots for Regression Predictions
autoplot.ResampleResult

Plots for Resample Results