ggplot2 error “no layers in plot”

前端 未结 2 767

I have seen the question already asked... and solved adding stat = \"identity\" to geom_bar. But in my case, this does not solve anything (I still

2条回答
  •  孤街浪徒
    2020-12-15 19:30

    the error was because the geom_line() or geom_point() option was not added. You can directly plot it without saving it as object on adding this option.

提交回复
热议问题