shading between to curves that intersect repeatedly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

shading between to curves that intersect repeatedly

BJ Manz

Dear R-Community,

I have the following problem and was wondering whether someone could help
me out. I have a number of time series of discharge (up to 3000 data
points in some cases) which I would like to compare on the same line plot
by shading the area between some of them. Can anyone tell me how to do
that? I have tried to fiddle around with the polygon function, but the
curves interact a number of times and I am not sure that'll work.

Thanks for any help in advance

Bastian

--

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: shading between to curves that intersect repeatedly

Peter Dalgaard
BJ Manz wrote:

> Dear R-Community,
>
> I have the following problem and was wondering whether someone could help
> me out. I have a number of time series of discharge (up to 3000 data
> points in some cases) which I would like to compare on the same line plot
> by shading the area between some of them. Can anyone tell me how to do
> that? I have tried to fiddle around with the polygon function, but the
> curves interact a number of times and I am not sure that'll work.
>
> Thanks for any help in advance
>

Did you see the example "Distance Between Brownian Motions" on the help
pare for polygon?

--
   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - ([hidden email])              FAX: (+45) 35327907

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.