plot.variable_selection {sharp}R Documentation

Plot of selection proportions

Description

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

Usage

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

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).

Value

A plot.

See Also

VariableSelection


[Package sharp version 1.4.6 Index]