Search code examples
rglmnet

glmnet plots - no axes or labels


I'm playing around with the standard plots in glmnet and am having an issue - axes and labels aren't being displayed.

If I try:

cv <- cv.glmnet(x, y, alpha = 1, family = "binomial", type.measure = "class")
plot(cv)

mod <- glmnet(x, y, alpha = 0, family = "binomial")
plot(mod)

I get:

cv

and

mod

Any ideas?

I'm using R 3.5.0.and glmnet v.2.0-16.


Solution

  • Just run dev.off() before the plot() command.