On 04/04/2014 05:36 PM, Mª Teresa Martinez Soriano wrote:
Hi to everyone!

I need to plot a box plot but I don't have the original data, is it possible to 
make it just with the median, mean, sd and range of values?

Any idea is welcome.

Hi Teresa,
You can get the return value from the boxplot function and then substitute the values you want into the $stats component. Then pass that to the bxp function. See the help pages for boxplot and bxp.

Another option is to use the box.heresy function in the plotrix package, as that function does not assume that the box will be defined by the median and (approximate) quartiles.

Jim

______________________________________________
R-help@r-project.org 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 via email to