Learn R Programming

mlr (version 2.12.1)

plotFilterValues: Plot filter values using ggplot2.

Description

Plot filter values using ggplot2.

Usage

plotFilterValues(fvalues, sort = "dec", n.show = 20L,
  feat.type.cols = FALSE, facet.wrap.nrow = NULL, facet.wrap.ncol = NULL)

Arguments

fvalues

(FilterValues) Filter values.

sort

(character(1)) Sort features like this. “dec” = decreasing, “inc” = increasing, “none” = no sorting. Default is decreasing.

n.show

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

feat.type.cols

(logical(1)) Colors for factor and numeric features. FALSE means no colors. Default is FALSE.

facet.wrap.nrow, facet.wrap.ncol

(integer) Number of rows and columns for facetting. Default for both is NULL. In this case ggplot's facet_wrap will choose the layout itself.

Value

ggplot2 plot object.

See Also

Other filter: filterFeatures, generateFilterValuesData, getFilterValues, getFilteredFeatures, listFilterMethods, makeFilterWrapper, makeFilter

Other generate_plot_data: generateCalibrationData, generateCritDifferencesData, generateFeatureImportanceData, generateFilterValuesData, generateLearningCurveData, generatePartialDependenceData, generateThreshVsPerfData, getFilterValues

Examples

Run this code
# NOT RUN {
fv = generateFilterValuesData(iris.task, method = "variance")
plotFilterValues(fv)
# }

Run the code above in your browser using DataLab