plot.SLOPE {SLOPE} | R Documentation |
Plot coefficients
Description
Plot the fitted model's regression coefficients along the regularization path.
Usage
## S3 method for class 'SLOPE'
plot(
x,
intercept = FALSE,
x_variable = c("alpha", "deviance_ratio", "step"),
...
)
Arguments
x |
an object of class |
intercept |
whether to plot the intercept |
x_variable |
what to plot on the x axis. |
... |
further arguments passed to or from other methods. |
Value
An object of class "ggplot"
, which will be plotted on the
current device unless stored in a variable.
See Also
Other SLOPE-methods:
coef.SLOPE()
,
deviance.SLOPE()
,
predict.SLOPE()
,
print.SLOPE()
,
score()
Examples
fit <- SLOPE(heart$x, heart$y)
plot(fit)
[Package SLOPE version 0.5.1 Index]