[R] different data series on one graph
A.J. Rossini
rossini at blindglobe.net
Fri Apr 26 23:25:40 CEST 2002
>>>>> "wouter" == wouter buytaert <wouter.buytaert at yucom.be> writes:
wouter> So how do you add the second Y axe then? (flow is in m3/s, rain
wouter> in mm/h)
How about judicious use of abline and text ?
(this is a hack'd solution, not a good one....)
best,
-tony
wouter> thanks!
wouter> Wouter
wouter> Aanhalen "A.J. Rossini" <rossini at blindglobe.net>:
>> >>>>> "wouter" == wouter buytaert
>> <wouter.buytaert at yucom.be> writes:
>>
wouter> Hello,
>>
wouter> I'm looking for a way to plot different data
>> series on one graph.
wouter> I have a series of hourly rainfall and
>> quarterly flow
wouter> measurements (i.e. 4 times an hour) of a
>> catchment. The rainfall
wouter> should be plotted in bars, the flow as a
>> line. Both on the same X
wouter> axe (time) but with different Y axes.
>>
wouter> The problem is the plot() function does not
>> support add=TRUE...
>>
>> lines() and points() should work for you.
>>
>>
>> --
>> A.J. Rossini Rsrch. Asst. Prof. of Biostatistics
>> U. of Washington
>> Biostatistics rossini at u.washington.edu
>> FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org
>> -------------- http://software.biostat.washington.edu/
>> ----------------
>> FHCRC: M-W: 206-667-7025 (fax=4812)|Voicemail is pretty
>> sketchy/use Email
>> UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of
>> phone to FAX
>> (my friday location is usually completely
>> unpredictable.)
>>
>>
wouter> ---------------------------------------------------------------
--
A.J. Rossini Rsrch. Asst. Prof. of Biostatistics
U. of Washington Biostatistics rossini at u.washington.edu
FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org
-------------- http://software.biostat.washington.edu/ ----------------
FHCRC: M-W: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email
UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX
(my friday location is usually completely unpredictable.)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list