Description Usage Arguments Value See Also Examples
This function creates a ggplot
graphic version of
plot.cv.glmnet
for cv.glmnet
objects.
1 2 | ggDiagnose.cv.glmnet(x, sign.lambda = 1, color = "red",
dashed.color = "red", show.plot = TRUE, return = FALSE, ...)
|
x |
|
sign.lambda |
what sign of |
color |
color of CV MSE average dot |
dashed.color |
color of dashed lines for |
show.plot |
logic to display the plot |
return |
logic to return list the graphic and the data frame to make the majority of the graphic |
... |
extra attributes (currently not used) |
depending on show.plot
and return
it
will return the visualization of the graphic and/or a list
of both the data frame used the make the majority of the graphic and
the graphic object itself.
dfCompile.cv.glmnet
for data creation.
1 2 3 4 5 6 7 | library(glmnet)
cv.glmnet.object <- cv.glmnet(y = iris$Sepal.Length,
x = model.matrix(Sepal.Length~., data = iris))
plot(cv.glmnet.object)
ggDiagnose(cv.glmnet.object)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.