plot.SLOPE | R Documentation |
Plot the fitted model's regression coefficients along the regularization path.
## S3 method for class 'SLOPE'
plot(
x,
intercept = FALSE,
x_variable = c("alpha", "deviance_ratio", "step"),
...
)
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. |
An object of class "ggplot"
, which will be plotted on the
current device unless stored in a variable.
SLOPE()
, plotDiagnostics()
Other SLOPE-methods:
coef.SLOPE()
,
deviance.SLOPE()
,
predict.SLOPE()
,
print.SLOPE()
,
score()
fit <- SLOPE(heart$x, heart$y)
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.