Skip to contents

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.

Examples

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