plotFilterValues: Plot filter values using ggplot2.

View source: R/generateFilterValues.R

plotFilterValuesR Documentation

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
)

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).

Value

ggplot2 plot object.

See Also

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

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

Examples


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


mlr documentation built on June 22, 2024, 10:51 a.m.