# [R] more boxplot questions

Alexandre Fayolle Alexandre.Fayolle at free.fr
Sun Dec 10 10:09:25 CET 2000

```Hello,

I have a couple more questions about boxplots. In the books I've read on
statistics (I'm not a statistics expert but just a poor engineer trying
to help his wife with the analysis of the data she gathered for her
medieval history PhD), I seen two kinds of box plots: one using
quartiles to determine the height of the rectangles and whiskers which
is what the standard R boxplot does, from what I read in the doc, and
another one using  the the variance (rectangle height = 2s, whiskers
going from +1s to +2s and -1s to -2s). Is there a way to produce such
boxplot with R ?

Second question: I would like to ponderate the plotted variable with
another variable. To take an example, the grouping factor A is a
production city, X is a unitary price and Y is a quantity bought from
city Ai at price Xi. I would like to make a boxplot of the prices
ponderated by the quantity bought. Since it sounds like a fairly
standard visualization, I suppose ther's an easy way to do this with R.