[R] date-time series plot

mpavlic matevz.pavlic at gi-zrmk.si
Mon Apr 2 11:49:02 CEST 2012


Hi all, 

i have a date-time series plot like this :
Datum-Ura;padavine;P-kum-15dni;BLPV-1N;T-BLPV-1N;BLPV-4N;T-BLPV-4N;BLPV-5N;T-BLPV-5N;pretok;N-min;N-max
1.1.2011
18:00;0.0;0.0;174.62;14.60;174.56;14.10;174.64;14.20;299.26;174.18;181.78
2.1.2011
0:00;0.0;0.0;174.60;14.60;174.60;14.10;174.64;14.20;285.16;174.26;181.71
2.1.2011
6:00;0.0;0.0;174.60;14.60;174.64;13.90;174.64;14.20;313.82;174.4;182.07
2.1.2011
12:00;0.0;0.0;174.60;14.60;174.61;14.10;174.59;14.20;254;174.31;181.95
2.1.2011
18:00;0.0;0.0;174.59;14.60;174.57;14.10;174.63;14.20;265.25;174.23;182.01
3.1.2011
0:00;0.9;0.0;174.58;14.60;174.58;14.10;174.57;14.20;275.41;174.26;181.86
3.1.2011
6:00;0.0;0.0;174.57;14.60;174.60;14.00;174.62;14.20;300.21;174.37;181.9
3.1.2011
12:00;0.0;0.0;174.57;14.60;174.50;14.10;174.45;14.20;257.65;174.03;181.76
3.1.2011
18:00;0.0;0.0;174.54;14.60;174.51;14.10;174.59;14.20;274.9;174.23;182.06

I would like to create a multiple time series plot of all columns on the
same chart. I have tried ts.plot command, which works for one axis. In the
data frame i have different values, so I would also need secondary axis. My
code for ts.plot is :


ts.plot(DF2[,1:3], gpars=list(xlab="dan/4", ylab="", lty=c(1:4),
col=c(1:4)))

Can someone tell me how to create a secondary axis ? 

thank you

--
View this message in context: http://r.789695.n4.nabble.com/date-time-series-plot-tp4525574p4525574.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list