Re: [R] Adding abline in Lattice graph

2009-02-13 Thread Dieter Menne
Sundar Dorai-Raj gmail.com> writes: > > Sorry, that was my lack of understanding on how coplot works. > Try the following: > > coplot(lbxglu~lbxgh|eth, data = reg.dat.5, >panel= function(...) { > panel.smooth(...) > abline(h = 126, col = "red") > abline(v = 6.5, col = "blue"

Re: [R] Adding abline in Lattice graph

2009-02-12 Thread Sundar Dorai-Raj
Sorry, that was my lack of understanding on how coplot works. Try the following: coplot(lbxglu~lbxgh|eth, data = reg.dat.5, panel= function(...) { panel.smooth(...) abline(h = 126, col = "red") abline(v = 6.5, col = "blue") }, xlab="ABC", ylab="FBG") On Thu, Feb 12, 2009 at

Re: [R] Adding abline in Lattice graph

2009-02-12 Thread Sundar Dorai-Raj
Try: coplot(lbxglu~lbxgh|eth, data = reg.dat.5, panel= function(...) { panel.smooth(...) panel.abline(h = 126, col = "red") panel.abline(v = 6.5, col = "blue") }, xlab="ABC", ylab="FBG") Also note that you removed your "with" call and give coplot a data argument. HTH, --sunda