Re: [R-sig-eco] Help plotting time series from multiple years?

2011-04-24 Thread Darren Norris
Hi Raphael,
Not sure about lattice but the ggplot2 packge has some straight forward 
examples.
see bottom figure on this page http://had.co.nz/ggplot2/scale_date.html
plus http://had.co.nz/ggplot2/scale_datetime.html
Dates need to be POSIXct 
?POSIXct 
HTH
Darren

--

Message: 2
Date: Sat, 23 Apr 2011 11:06:47 -0700
From: Raphael Mazor 
To: r-sig-ecology@r-project.org
Subject: [R-sig-eco] Help plotting time series from multiple years?
Message-ID: <4db31537.1020...@sccwrp.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I would like to make a lattice plot of a variable by date from multiple 
years, where each panel is a different station, and each year is 
represented by a different line color. My data look something like this:

StationDateScore
Site15/19/2009552
Site16/23/2009578
Site18/5/2009604
Site19/15/2009618
Site14/13/2010610
Site15/11/2010618
Site16/15/2010118
Site17/20/2010592
Site19/1/2010590
Site25/18/2009628
Site26/22/2009590
Site28/4/2009628
Site29/16/2009610
Site210/20/2009618
Site24/15/2010200
Site25/11/2010118
Site26/15/2010217
Site27/20/2010479
Site29/1/2010353

I feel like this should be simple enough to do with Lattice using 
xyplot, but I'm not having much luck. Any suggestions?

Thanks!

-- 
Raphael D. Mazor
Freshwater Biologist
Southern California Coastal Water Research Project
3535 Harbor Blv Suite 110
Costa Mesa, CA 92626

Tel. (714) 755-3235
Fax. (714) 755-3299



--

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


[[alternative HTML version deleted]]

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology


[R-sig-eco] Help plotting time series from multiple years?

2011-04-23 Thread Raphael Mazor
I would like to make a lattice plot of a variable by date from multiple 
years, where each panel is a different station, and each year is 
represented by a different line color. My data look something like this:


StationDateScore
Site15/19/2009552
Site16/23/2009578
Site18/5/2009604
Site19/15/2009618
Site14/13/2010610
Site15/11/2010618
Site16/15/2010118
Site17/20/2010592
Site19/1/2010590
Site25/18/2009628
Site26/22/2009590
Site28/4/2009628
Site29/16/2009610
Site210/20/2009618
Site24/15/2010200
Site25/11/2010118
Site26/15/2010217
Site27/20/2010479
Site29/1/2010353

I feel like this should be simple enough to do with Lattice using 
xyplot, but I'm not having much luck. Any suggestions?


Thanks!

--
Raphael D. Mazor
Freshwater Biologist
Southern California Coastal Water Research Project
3535 Harbor Blv Suite 110
Costa Mesa, CA 92626

Tel. (714) 755-3235
Fax. (714) 755-3299

___
R-sig-ecology mailing list
R-sig-ecology@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology