使用xyplot和abline时,错误:尚未调用plot.new

时间:2018-07-01 22:42:03

标签: r

theta<-seq(90,110,0.01)
xyplot(F1(theta)~theta,type="l", col = rgb(red = 255, green = 90, blue = 0, maxColorValue = 255), cex.lab = 3.5, cex.axis = 3.5, lwd=2 )
abline(a=NULL, b=NULL, h=NULL, v=100)

F1被定义为任何函数,我得到了

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

0 个答案:

没有答案