Re: [R] lattice add a fit

2014-10-08 Thread Duncan Mackay
en [mailto:stephen.b...@cibc.com] Sent: Thursday, 9 October 2014 04:15 To: David Winsemius; Duncan Mackay Cc: R Subject: RE: [R] lattice add a fit Folks, This is just misunderstanding. I did not want a panel function for locfit. In my email I say: Instead, I want to put a fit from lm (but not a

Re: [R] lattice add a fit

2014-10-08 Thread Bond, Stephen
, October 08, 2014 12:30 PM To: Duncan Mackay Cc: R; Bond, Stephen Subject: Re: [R] lattice add a fit On Oct 7, 2014, at 9:15 PM, Duncan Mackay wrote: I'm a tad puzzled by the comments about needing to build a panel function for locfit. The various plot.locfit functions are actually lattice

Re: [R] lattice add a fit

2014-10-08 Thread David Winsemius
On Oct 7, 2014, at 9:15 PM, Duncan Mackay wrote: I'm a tad puzzled by the comments about needing to build a panel function for locfit. The various plot.locfit functions are actually lattice calls. locfit:::panel.locfit # already exists, and even has versions for 1d, 2d and 3d purposes. And

Re: [R] lattice add a fit

2014-10-07 Thread Duncan Mackay
Hi Stephen if you want and uncomplicated graph you can do the following (data is from https://stat.ethz.ch/pipermail/r-help/2008-December/181887.html which has an example of smoothing with a panel function a (follow the thread)) May be un necessary for what you want dput(test) structure(list(x =

Re: [R] lattice add a fit

2014-10-07 Thread Bert Gunter
Fit your model in the panel function using lm and plot the fits using ?panel.points, ?panel.lines, etc. -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Stoll On Tue

Re: [R] lattice add a fit

2014-10-07 Thread Bert Gunter
: Tuesday, October 07, 2014 9:30 AM > To: Bond, Stephen > Cc: r-help@R-project.org > Subject: Re: [R] lattice add a fit > > Fit your model in the panel function using lm and plot the fits using > ?panel.points, ?panel.lines, etc. > > -- Bert > > Bert Gunter > Genentec

Re: [R] lattice add a fit

2014-10-07 Thread Bert Gunter
in place of ?? I get a global fit, not a fit for each level > of z, which is what I want. > > Stephen B > > > -Original Message- > From: Bert Gunter [mailto:gunter.ber...@gene.com] > Sent: Tuesday, October 07, 2014 9:30 AM > To: Bond, Stephen > Cc: r-help@R-projec

Re: [R] lattice add a fit

2014-10-07 Thread Bond, Stephen
-Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: Tuesday, October 07, 2014 9:30 AM To: Bond, Stephen Cc: r-help@R-project.org Subject: Re: [R] lattice add a fit Fit your model in the panel function using lm and plot the fits using ?panel.points, ?panel.lines