Re: [R] lattice: loess smooths based on y-axis values

2013-01-18 Thread Raeanne Miller
uary 2013 15:08 To: Raeanne Miller Cc: r-help@r-project.org Subject: Re: [R] lattice: loess smooths based on y-axis values Reanne: UNTESTED: I would reverse the xyplot call as xyplot(x~y,...) to get all axes set up properly and then just write an explicit panel function using loess() and predict.lo

Re: [R] lattice: loess smooths based on y-axis values

2013-01-18 Thread Bert Gunter
t; > Hope that is useful for anyone else interested - and Bert, thanks again for > the swift reply! > > Raeanne > > -Original Message- > From: Bert Gunter [mailto:gunter.ber...@gene.com] > Sent: 18 January 2013 15:08 > To: Raeanne Miller > Cc: r-help@r-project.org

Re: [R] lattice: loess smooths based on y-axis values

2013-01-18 Thread Bert Gunter
Reanne: UNTESTED: I would reverse the xyplot call as xyplot(x~y,...) to get all axes set up properly and then just write an explicit panel function using loess() and predict.loess the "correct" way, e.g. as loess(y~x) to get the (x,y) curve pairs to be plotted via panel.lines(y,x). You will

[R] lattice: loess smooths based on y-axis values

2013-01-18 Thread Raeanne Miller
Hi there, I'm using the lattice package to create an xy plot of abundance vs. depth for 5 stages of barnacle larvae from 5 species. Each panel of the plot represents a different stage, while different loess smoothers within each panel should represent different species. However, I would like d