plot: Plot method for and object of class variable.selection

Description Usage Arguments Author(s) Examples

Description

On the basis of a variable.selection object, two/three plots are currently available: (1) a plot showinh the variables selected in each method ; (2) a plot showing the frequency of the selection of each variable across all methods; and, if there is any ranker methods selected, (3) a plot showing the weight of each variable in each method. The square related to each variable-method will be darker if the variable has a high weight in this method and it will be white if it has a low weight. The intensity of color shows the weight of the variable.

Usage

1
2
3
## S3 method for class 'variable.selection'
plot(x, which = c(1L, 2L, 3L), col = "black",
  ...)

Arguments

x

an object of class variable.selection as produced by variable.selection().

which

a numeric vector with the required plots. By default, all the possible options are plotted.

col

color

...

further arguments passed to method plot.default.

Author(s)

Farideh Bagherzadeh-Khiabani.

Examples

1
2
3
4
5
6
7
8
library(VariableSelection)
 data(tlgs)

 ###########################################
 # Variable Selection with the deafault method (all methods with the default parameters):
 object <- variable.selection (input=names(tlgs)[-1],
 target=names(tlgs)[1], data=tlgs)
 plot(object)

faridehbagherzadeh/VariableSelection documentation built on May 16, 2019, 10:10 a.m.