小编use*_*894的帖子

"int_abline中的错误... plot.new尚未被调用"

我已经看到这里发布的这个错误,但我没有得到任何修复工作.我目前正在使用内置的"忠实"数据集作为r-tutor.com教程的一部分:

duration = faithful$eruptions
waiting = faithful$waiting
abline(lm(duration ~ waiting))
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : 
  plot.new has not been called yet
Run Code Online (Sandbox Code Playgroud)

我试过plot.new(),没有运气.我试过了

x <- (duration ~ waiting)
abline(x)
Run Code Online (Sandbox Code Playgroud)

没运气.

我试过重新启动R,没有运气.使用3.0.0 for Windows.谢谢.

plot r

8
推荐指数
2
解决办法
3万
查看次数

标签 统计

plot ×1

r ×1