R语言新人自学中~ 最近在plotting方面遇到点小问题,向各位求助。
想在原有plot上面加点或加文字时总是出现以下error message:
Error in ### :
plot.new has not been called yet
下面以一个最简单的adding text为例:
> plot(Age,LungCap)
>
> text(x=5,y=11,label="r = 0.87")
Error in text.default(x = 5, y = 11, label = "r = 0.87") :
plot.new has not been called yet
请问该怎么解决呢?提前感谢!