For base graphics the bxp function does the actual plotting given the statistics.
-- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----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 1: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. > > > > 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. ______________________________________________ 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.