ggplot,套索中找不到对象“值”

时间:2019-08-31 16:04:26

标签: r ggplot2 lasso-regression

我正在尝试为我的PlayStoreLasso模型绘制相关变量,但出现此错误:

Error in FUN(X[[i]], ...) : object 'value' not found

你能帮我吗

coef(PlayStoreLasso, s = "lambda.1se") %>%
  tidy() %>%
  filter(row != "(Intercept)") %>%
  ggplot(aes(x = value, reorder(row,value), color = value > 0)) +
  geom_point(show.legend = FALSE) +
  ggtitle("Influential variables") +
  xlab("Coefficient") +
  ylab(NULL)

0 个答案:

没有答案
相关问题