[R-sig-Geo] Discharge and rainfall time series in one plot

Tobias Vetter vetter at pik-potsdam.de
Wed Oct 7 13:59:59 CEST 2009


You can also use the
par(new)=T
command.

example:
plot(runif(10))
par(new=T)
barplot(runif(10),ylim=c(10,0),yaxt="n")
axis(4)

> On 10/07/2009 07:40 PM, ageel bushara wrote:
>> Dear list members,
>> I want to plot discharge time series and rainfall time series in the 
>> same plot. The discharge in m3/s in the main y-axis and the time 
>> (every 15 minutes having a form 01-07-1997 10:15:00) in the main 
>> x-axis. The rainfall (mm) is in the secondary y-axis and the time in 
>> the secondary x-axis. How can I do it and which package shall I use.
>>    
> Hi Ageel,
> You can do this with the twoord.plot function in the plotrix package.
>
> Jim
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list