[R] An empty grey diagram

Stephen Liu satimis at yahoo.com
Sat Nov 20 03:44:42 CET 2010


Hi folks,

Win7 64bit
R 1.12.0

I run following command on R:-

> ToothGrowth
> attach(ToothGrowth)
> plot(dose,len)
> matrics=lm(len~dose)

> abline(metrics)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : 
  plot.new has not been called yet

Only a grey diagram is displayed without content


> plot(abline(metrics))
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : 
  plot.new has not been called yet

With the same result.


Pls advise what does it mean?  How to rectify it?  TIA


B.R.
Stephen L






More information about the R-help mailing list