Re: [R] Lattice: How to draw curves from given formulae

2008-08-04 Thread Deepayan Sarkar
On Mon, Aug 4, 2008 at 1:39 PM, John Smith <[EMAIL PROTECTED]> wrote: > I have another questions. How can I type specific names into strips of the > resulting plot? > > For instance, in the resulting figure from the attached code, instead of > 'umbrella(d)', I want have 'UMBRELLA' in the strip. > >

Re: [R] Lattice: How to draw curves from given formulae

2008-08-04 Thread John Smith
I have another questions. How can I type specific names into strips of the resulting plot? For instance, in the resulting figure from the attached code, instead of 'umbrella(d)', I want have 'UMBRELLA' in the strip. library(lattice) flat <- function(d) 0 * d linear <- function(d) -(1.65/8)

Re: [R] Lattice: How to draw curves from given formulae

2008-07-22 Thread Deepayan Sarkar
On 7/22/08, John Smith <[EMAIL PROTECTED]> wrote: > Thanks, Deepayan, > > I actually want to have a picture like the Figure 5.9 in "Mixed-Effects > Models in S and S-PLUS", which have a separate panel for each function and > has the function name been printed in strip. xyplot(linear(d) + logist

Re: [R] Lattice: How to draw curves from given formulae

2008-07-22 Thread John Smith
Thanks, Deepayan, I actually want to have a picture like the Figure 5.9 in "Mixed-Effects Models in S and S-PLUS", which have a separate panel for each function and has the function name been printed in strip. Thanks On Tue, Jul 22, 2008 at 1:08 PM, Deepayan Sarkar <[EMAIL PROTECTED]> wrote:

Re: [R] Lattice: How to draw curves from given formulae

2008-07-22 Thread Deepayan Sarkar
On 7/21/08, John Smith <[EMAIL PROTECTED]> wrote: > Dear R Users: > > I have a list function as: > Flat: y = 0 > Linear: y = -(1.65/8)d > Logistic: y = 0.015 - 1.73/{1+exp[1.2(4-d)]} > Umbrella: y= -(1.65/3)d + (1.65/36)d^2 > Emax: y = -1.81d/(0.79+d) > Sigmoid Emax: y = -1.70d^5/(4^5+d^5)

[R] Lattice: How to draw curves from given formulae

2008-07-22 Thread John Smith
Dear R Users: I have a list function as: Flat: y = 0 Linear: y = -(1.65/8)d Logistic: y = 0.015 - 1.73/{1+exp[1.2(4-d)]} Umbrella: y= -(1.65/3)d + (1.65/36)d^2 Emax: y = -1.81d/(0.79+d) Sigmoid Emax: y = -1.70d^5/(4^5+d^5) And want draw the figure as attached (those material are extracted from a