| 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"),
magnitudes = FALSE,
add_labels = FALSE,
...
)
x |
an object of class |
intercept |
whether to plot the intercept |
x_variable |
what to plot on the x axis. |
magnitudes |
whether to plot the magnitudes of the coefficients |
add_labels |
whether to add labels (numbers) on the right side of the plot for each coefficient |
... |
arguments passed to |
Invisibly returns NULL. The function is called for its side effect of producing a plot.
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.