Re: [R] Lattice: raw data and prediction of a non linear fitted function

2015-08-06 Thread François Collin
t(xy.pre) >llines( seq(5,60,5), xy.pre, col = "magenta") > } > > }) > > Regards > > Duncan > > Duncan Mackay > Department of Agronomy and Soil Science > University of New England > Armidale NSW 2351 > Email: h

Re: [R] Lattice: raw data and prediction of a non linear fitted function

2015-08-06 Thread Kevin Wright
I find this type of lattice graph to be much easier to create via the use of layers in the latticeExtra package. See the "carmer.density" dataset example in the "agridat" package, which shows the use of layers. It doesn't have "groups", but it is not too hard to add a groups argument to a layer a

Re: [R] Lattice: raw data and prediction of a non linear fitted function

2015-08-05 Thread Duncan Mackay
}) Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of François Collin Sent: Wednesday, 5 August 2015

[R] Lattice: raw data and prediction of a non linear fitted function

2015-08-05 Thread François Collin
Dear all, I have a question about lattice use. I would like to use it to represent: - my raw data as points, - and the results of a non linear fit as a line, - having 2 groups data (and so 2 colors). However, as I have few raw data, I would like to increase the number of points to smooth the line