Learn R Programming

CAST (version 0.2.0)

plot_ffs: Plot results of a Forward feature selection

Description

A plotting function for a forward feature selection result. Each point is the mean performance of a model run. Error bars represent the standard errors from cross validation. Marked points show the best model from each number of variables until a further variable could not improve the results.

Usage

plot_ffs(ffs_model, palette = rainbow, reverse = FALSE, marker = "black",
  size = 1.5, lwd = 0.5, pch = 21)

Arguments

ffs_model

Result of a forward feature selection see ffs

palette

A color palette

reverse

Character. Should the palette be reversed?

marker

Character. Color to mark the best models

size

Numeric. Size of the points

lwd

Numeric. Width of the error bars

pch

Numeric. Type of point marking the best models

See Also

ffs

Examples

Run this code
# NOT RUN {
data(iris)
ffsmodel <- ffs(iris[,1:4],iris$Species)
plot_ffs(ffsmodel)
# }

Run the code above in your browser using DataLab