Re: [R] Help needed with Waterfall plot

From: Jim Lemon <>
Date: Sat, 01 Nov 2008 21:41:41 +1100

Thomas Petzoldt wrote:
> Philip Twumasi-Ankrah schrieb:
>> Hi friends,
>> I need suggestions/directions on how to producing a waterfall plot
>> for present extend of change in tumour size for a set of respondents
>> in a study. Example of use of waterfall plot is in the following
>> slides presented at ASCO 2007 by Axel Grothey. Link is
>> The link is pretty long but it takes you right to the presentation.
> Hi Phillip,
> is this a "waterfall plot":
> ## a few data
> x <- 0:99
> y <- sort(rnorm(100), decreasing=TRUE)
> # the plot
> plot(y, type="n")
> polygon(c(min(x), x, max(x), 0), c(0, y, 0, 0), col="green")
Hi Thomas (and Philip again),
Very nice - Ijust read your email and tested it with a non-monotonic y and it works. I guess there isn't any point in writing a "waterfall plot" function after all.

Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 01 Nov 2008 - 10:45:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 01 Nov 2008 - 11:30:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive