Re: [R] Conditional plot(Lattice)

2010-01-29 Thread Henrique Dallazuanna
Tru this: xyplot(Value ~ Dim | ifelse(Prof > 50, 1, 0), data = x) On Fri, Jan 29, 2010 at 5:25 AM, Brima wrote: > > Hi All, > > I am completely new to R. I have the below data and want to create a > conditional variable say Prof.H as such that it equals 1 if Prof is > 50 and > 0 otherwise and cr

[R] Conditional plot(Lattice)

2010-01-29 Thread Brima
Hi All, I am completely new to R. I have the below data and want to create a conditional variable say Prof.H as such that it equals 1 if Prof is > 50 and 0 otherwise and create a scatter plot of Value and Dim conditional on the new variable. Area Value Dim Prof 1 1 145.1 9.5

[R] Conditional plot(Lattice)

2010-01-28 Thread Brima
Hi All, I am completely new to R. I have the below data and want to create a conditional variable say Prof.H as such that it equals 1 if Prof is > 50 and 0 otherwise and create a scatter plot of Value and Dim conditional on the new variable. Area Value Dim Prof 1 1 145.1