[R] xyplot & lmline: error message.

Andrewjohnclose a.j.close at ncl.ac.uk
Mon Sep 28 10:07:43 CEST 2009


Hi, I am trying to produce an xyplot with a regression line. The data should
be represented as log/log but when I fit the lmline I receive an error
message - the plot is fine without the log transformation, but the then the
plot is meaningless. I know it must be something simple, but I just can't
see it. Hope someone can help...

Thanks.

xyplot(log(Pk)~log(k),data=rwpk,cex=1,
panel=function(x,y){
panel.grid(h=-1, v=-1)
panel.xyplot(x,y,cex=1.0)
panel.lmline(x,y)
})

http://www.nabble.com/file/p25641684/rwpk.csv rwpk.csv 
-- 
View this message in context: http://www.nabble.com/xyplot---lmline%3A-error-message.-tp25641684p25641684.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list