Re: [R] box-and-whisker plots based on summary not data

2010-12-20 Thread Matthew Vernon
Matthew Vernon m.c.ver...@warwick.ac.uk writes: Is it possible to produce box-and-whisker plots given that I have the median, interquartile and 5/95th centile values, but not the data from which they come? The answer, which came from Steve Ellison (thanks!) is to note that stats is the only

Re: [R] box-and-whisker plots based on summary not data

2010-12-20 Thread David Winsemius
On Dec 20, 2010, at 8:33 AM, Matthew Vernon wrote: Matthew Vernon m.c.ver...@warwick.ac.uk writes: Is it possible to produce box-and-whisker plots given that I have the median, interquartile and 5/95th centile values, but not the data from which they come? Please note that the whiskers

[R] box-and-whisker plots based on summary not data

2010-12-17 Thread Matthew Vernon
Hi, Is it possible to produce box-and-whisker plots given that I have the median, interquartile and 5/95th centile values, but not the data from which they come? It seems that it ought to be possible to coerce bxp to do what I want, but I can't quite see how. Thanks, Matthew -- Matthew Vernon,

Re: [R] box-and-whisker plots based on summary not data

2010-12-17 Thread Tal Galili
It would seem that simply running the boxplot on the relevent numbers will give you a boxplot (Assuming you are not beyond the fences). set.seed(10) x = rnorm(100) boxplot(x) boxplot(summary(x)[-4]) # If beyond the fences - it won't work set.seed(10) x = c(rnorm(100), 10) boxplot(x)

Re: [R] box-and-whisker plots based on summary not data

2010-12-17 Thread Greg Snow
Can you show us what you tried and how it differs from what you expect? The boxplot function calculates the summaries, then calls the bxp function to do the plotting. So you should be able to create a list similar to what boxplot does that you can then pass directly to bxp. If you have tried