Learn R Programming

sharp (version 1.4.7)

plot.variable_selection: Plot of selection proportions

Description

Makes a barplot of selection proportions in decreasing order. See examples in VariableSelection.

Usage

# S3 method for variable_selection
plot(
  x,
  col = c("red", "grey"),
  col.axis = NULL,
  col.thr = "darkred",
  lty.thr = 2,
  n_predictors = NULL,
  ...
)

Value

A plot.

Arguments

x

output of VariableSelection.

col

vector of colours by stable selection status.

col.axis

optional vector of label colours by stable selection status.

col.thr

threshold colour.

lty.thr

threshold line type as lty in par.

n_predictors

number of predictors to display.

...

additional plotting arguments (see par).

See Also

VariableSelection