[STATSGRASS] graphics in R

Edzer J. Pebesma e.pebesma at geo.uu.nl
Fri Oct 5 04:27:51 EDT 2007


Matteo, you might try:

 d = data.frame(a = rnorm(5), b = rnorm(5), c = rnorm(5), t = 
as.POSIXct(Sys.time()+1:5))
 library(lattice)
xyplot(a+b+c~t, d, auto.key = TRUE)

Hope this helps,
--
Edzer

Matteo Dall'Amico wrote:
> Hello,
> I would like to raise a question about plotting: I would like to plot 
> on the SAME graph the temperature with time of sensors at different depth.
> That means, I would like to have in the same graph on the x-axis the 
> time, y-axis the temperature, and on the graph several curves with 
> different colors representing the different depth.
> I have a file with the first column representing the time, column 2 
> representing the temperature at depth1, column 3 the temperature at 
> depth2... and so on.
> Does someone know how I could do that?
> Thanks a lot in advance,
>
> Matteo
>
> ---------------------------------
> Matteo Dall'Amico
> PhD candidate
> CUDAM and department of Civil and Environmental Engineering
> Universita' degli Studi di Trento
> Via Mesiano 77 - 38050 Trento - Italy
> email: matteo.dallamico at ing.unitn.it 
> <mailto:matteo.dallamico at ing.unitn.it>
> Tel. +39 0461 882610
> Fax +39 0461 882672
> http://www.dottorato.it/trento/
> ---------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> statsgrass mailing list
> statsgrass at grass.itc.it
> http://grass.itc.it/mailman/listinfo/statsgrass
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-stats/attachments/20071005/c24eca3e/attachment.html


More information about the grass-stats mailing list