Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, B77S wrote: The following might not be exactly the way to do this, but see the package "reshape" and the line of code following your data: Thank you, B77S. Bert pointed me to reshape and reshape2. I'll read the help pages for them before responding. I'll be out of the of

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread B77S
The following might not be exactly the way to do this, but see the package "reshape" and the line of code following your data: df <- structure(list(site = structure(c(1L, 1L, 2L, 4L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), .Label = c("BC-0.5", "BC-2", "BC-3", "BC-4"), class = "factor"), sampda

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, B77S wrote: Why not format the data like this: site sampledate SO4 TDS NA Mg Cond Cl Ca Because I don't know how to reformat the base data frame (chemdata) to achieve this. It seems to me that you summary doesn't make any sense. Those quantiles are meaningless as they

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, Daniel Nordlund wrote: you need to reorganize your data so that you have a single record (i.e. row) for each site/sampdate combination with the quant value for each of your params save in a column named by the param value (I don't remember all the param names so I used pn).

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Rich Shepard > Sent: Monday, October 24, 2011 2:17 PM > To: r-help@r-project.org > Subject: Re: [R] Syntax Help for xyplot() > > On Mon, 24 Oct

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread B77S
Why not format the data like this: site sampledate SO4 TDS NA Mg Cond Cl Ca i.e. with a column for each parameter? It seems to me that you summary doesn't make any sense. Those quantiles are meaningless as they encompass all the parameters. Am I missing something? Rich Shepard wrote: > >

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, Dennis Murphy wrote: xyplot('TDS'$quant ~ 'Cond'$quant | burns.tds.anal$site ) Dennis, xyplot('TDS'$quant ~ 'Cond'$quant | burns.tds.anal$site) Error in "TDS"$quant : $ operator is invalid for atomic vectors I tried that earlier today. Rich __

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, Bert Gunter wrote: Where's TDS? -- 'cause it's sure not in your data frame. Bert, summary(burns.tds.anal) sitesampdate param quant BC-3 :460 Min. :1992-03-27 Ca : 65 Min. : 1.00 BC-2 :107 1st Qu.:1994-09-21 Cl :148

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Dennis Murphy
Hi: You should perhaps do the following in the xyplot() call (untested because the TDS and Cond data frames are missing): xyplot('TDS'$quant ~ 'Cond'$quant | burns.tds.anal$site ) assuming that all three atomic objects have the same length. Caveat emptor. Dennis On Mon, Oct 24, 2011 at 2:17 PM

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Bert Gunter
Where's TDS? -- 'cause it's sure not in your data frame. -- Bert On Mon, Oct 24, 2011 at 2:17 PM, Rich Shepard wrote: > On Mon, 24 Oct 2011, Rich Shepard wrote: > > Perhaps because it's Monday I'm not successfully writing the xyplot() >> command to show the quant, for example, for TDS by site.

Re: [R] Syntax Help for xyplot()

2011-10-24 Thread Rich Shepard
On Mon, 24 Oct 2011, Rich Shepard wrote: Perhaps because it's Monday I'm not successfully writing the xyplot() command to show the quant, for example, for TDS by site. What I need to do is plot the quant values for TDS vs. Cond, TDS vs. SO4, etc. I should have provided some of the attempts: