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 --
Peter Dalgaard
2009-Dec-15 13:47 UTC
[R] shading between to curves that intersect repeatedly
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 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907