Re: [R] Labelling boxplot with fivenumber summary

2007-04-09 Thread Vikas Rawal
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

Re: [R] Labelling boxplot with fivenumber summary

2007-04-08 Thread Ranjan Maitra
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

[R] Labelling boxplot with fivenumber summary

2007-04-08 Thread Daniel Siddle
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

Re: [R] Labelling boxplot with fivenumber summary

2007-04-06 Thread jim holtman
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){

Re: [R] Labelling boxplot with fivenumber summary

2007-04-06 Thread Chuck Cleland
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

Re: [R] Labelling boxplot with fivenumber summary

2007-04-06 Thread Chuck Cleland
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

[R] Labelling boxplot with fivenumber summary

2007-04-06 Thread Daniel Siddle
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