Learn R Programming

mlr (version 2.19.0)

plotFilterValues: Plot filter values using ggplot2.

Description

Plot filter values using ggplot2.

Usage

plotFilterValues(
  fvalues,
  sort = "dec",
  n.show = nrow(fvalues$data),
  filter = NULL,
  feat.type.cols = FALSE
)

Value

ggplot2 plot object.

Arguments

fvalues

(FilterValues)
Filter values.

sort

(character(1))
Available options are:

  • "dec"-> descending

  • "inc" -> increasing

  • "none" -> no sorting

Default is decreasing.

n.show

(integer(1))
Number of features (maximal) to show. Default is to plot all features.

filter

(character(1)) In case fvalues contains multiple filter methods, which method should be plotted?

feat.type.cols

(logical(1))
Whether to color different feature types (e.g. numeric | factor). Default is to use no colors (feat.type.cols = FALSE).

See Also

Other filter: filterFeatures(), generateFilterValuesData(), getFilteredFeatures(), listFilterEnsembleMethods(), listFilterMethods(), makeFilterEnsemble(), makeFilterWrapper(), makeFilter()

Other generate_plot_data: generateCalibrationData(), generateCritDifferencesData(), generateFeatureImportanceData(), generateFilterValuesData(), generateLearningCurveData(), generatePartialDependenceData(), generateThreshVsPerfData()

Examples

Run this code
fv = generateFilterValuesData(iris.task, method = "variance")
plotFilterValues(fv)

Run the code above in your browser using DataLab