plotParallelCoordinate: Parallel Coordinate Plot (PCP)

Description Usage Arguments Value See Also Examples

View source: R/plotParallelCoordinate.R

Description

Visualization of a parallel coordinate plot from a mlr3::Task object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plotParallelCoordinate(
  task,
  features = NULL,
  labelside = "Top",
  labelangle = 0,
  colbarrange = NULL,
  constrainrange = NULL,
  labeltarget = TRUE,
  colbarreverse = FALSE,
  autosort = TRUE,
  numericNA = "Max",
  title = FALSE,
  titleheight = 0.95
)

Arguments

task

(mlr3::Task object)
A task for which the plot should be generated.

features

(character)
The names of columns to be plotted. If NULL, each column will be plotted. The default is NULL.

labelside

(character(1)
The positions of the labels for the scales. It can be chosen between "Top" and "Bottom". The default is "Top".

labelangle

(numeric(1))
The angle of the labels. The default is 0.

colbarrange

(numeric(2))
A vector with two numeric values. Its distance specifies the range of the color bar for the labeled target. If NULL, the color bar is displayed. The value range of the color bar starts at the minimum and ends at the maximum of the target variable. The default is NULL.

constrainrange

(numeric(2))
A vector with two numeric values between 0 and 1. The vector restricts each column to a range of values that lies within the quantile of the target variable. If NULL, no restriction is plotted. The default is NULL.

labeltarget

(logical)
If TRUE, the target will be labeled. The default is TRUE.

colbarreverse

(logical)
If TRUE, the colorbar will be reversed. The default is FALSE.

autosort

(logical)
If TRUE, the columns will be ordered. The default is TRUE.

numericNA

(character(1)
If "Max", the NA values of the column are displayed as maximum value. If "Min", the NA values are displayed as minimum value. The default is "Max".

title

(logical)
If TRUE, a title will be plotted. The default is FALSE.

titleheight

(numeric(1))
The height of the title. The default is 0.95.

Value

A plotly object.

See Also

plotHeatmap plotPartialDependence plotImportance

Examples

1
2
3
4
library(mlr3)
data(glmnet_ela)
task_glmnet_ela = TaskRegr$new(id = "task_glmnet", backend = glmnet_ela, target = "logloss")
plotParallelCoordinate(task = task_glmnet_ela)

Pizzaknoedel/visualize-hyperparameter documentation built on Feb. 13, 2022, 8:11 a.m.