A function that uses ggplot package to make annotated boxplots is
described at
http://vikasrawal.wordpress.com/2007/02/25/working-with-ggplot/
An advantage of using ggplot is that you can plot weighted boxplots.
Vikas Rawal
Associate Professor
Centre for Economic Studies and Planning
Jawaharlal N
You may wish to provide brief commented source code: that would be most helpful
for people referring to it in the archives.
Many thanks and best wishes,
Ranjan
On Sun, 8 Apr 2007 11:43:47 + Daniel Siddle <[EMAIL PROTECTED]> wrote:
>
> Just wanted to say thanks very much. I used Chuck's 2n
Just wanted to say thanks very much. I used Chuck's 2nd idea as I found it the
easiest to understand as I'm still finding me feet with R. Just for reference
for anyone else, fn[1] and fn[5] actually pasted and gave the values at the
whiskers (~1.5 IQR) so replaced them with a max and min func
Here is one way of labeling the values:
# capture data returned by boxplot
x <- boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
# plot each group
for (i in seq(ncol(x$stats))){
text(i, x$stats[,i], labels=x$stats[,i])
}
# if there are outliers, plot them
if (length(x$out) > 0){
Daniel Siddle wrote:
> I am very new to R so forgive me if this seems basic but I have done
> extensive searching and failed to come up with the answer for myself.
>
> I am trying to label a boxplot I have created with the values for the median,
> upper and lower quartiles and max and min values
Daniel Siddle wrote:
> I am very new to R so forgive me if this seems basic but I have done
> extensive searching and failed to come up with the answer for myself.
>
> I am trying to label a boxplot I have created with the values for the median,
> upper and lower quartiles and max and min values
I am very new to R so forgive me if this seems basic but I have done extensive
searching and failed to come up with the answer for myself.
I am trying to label a boxplot I have created with the values for the median,
upper and lower quartiles and max and min values. I have been unable to do
t