Thank you all for your comments. The bxp() function does the trick well!
> Subject: RE: [R] boxplot knowing Q1, Q3, median,upper and lower whisker value > Date: Fri, 10 Sep 2010 11:00:06 -0700 > From: wdun...@tibco.com > To: dig...@ohsu.edu; dasol...@hotmail.com > CC: r-help@r-project.org > > is.nan(bd.coerce(as.bdVector(c(1.0, N> -----Original Message----- > > From: r-help-boun...@r-project.org > > [mailto:r-help-boun...@r-project.org] On Behalf Of Brian Diggs > > Sent: Thursday, September 09, 2010 12:41 PM > > To: David A. > > Cc: R-help > > Subject: Re: [R] boxplot knowing Q1, Q3, median,upper and > > lower whisker value > > > > On 9/6/2010 8:46 AM, David A. wrote: > > > > > > Dear list, > > > > > > I am using a external program that outputs Q1, Q3, median, upper and > > > lower whisker values for various datasets simultaneously in a tab > > > delimited format. After importing this text file into R, I > > would like > > > to plot a boxplot using these given values and not the original > > > series of data points, i.e. not using something like > > > boxplot(mydata). > > > > > > Is there an easy way for doing this? If I am not wrong, boxplot() > > > does not accept these values as parameters. > > I believe boxplot(x,y,z) computes the required statistics > and passes them to the bxp() function for plotting. If > you have the statistics you can pass them to bxp() yourself. > You might call trace(bxp) followed by a call to boxplot() > to see how boxplot uses bxp. > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > > > > > > Cheers, > > > > > > Dave [[alternative HTML version deleted]] > > > > If you use ggplot2, you can specify the aesthetics lower, > > upper, middle, > > ymin, and ymax directly to variables in geom_boxplot. Just > > be sure to > > set stat="identity" so that it does not try to summarize your > > data again. > > > > -- > > Brian Diggs > > Senior Research Associate, Department of Surgery > > Oregon Health & Science University > > > > ______________________________________________ > > 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. > > [[alternative HTML version deleted]] ______________________________________________ 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.