when use xyplot and abline, error: plot.new has not been called yet
when use xyplot and abline, error: plot.new has not been called yet
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 is defined as a whatever function, and I got
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
you are mixing base r plotting and lattice . see stackoverflow.com/questions/11949766/… for abline in lattice
– user20650
Jul 1 at 22:54