Re: [R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-28 Thread Tal Galili
Hello Greg, Kevin, Jim and other R-help members, Regarding text spacing: Drew Conway published today a fascinating post about "Building a Better Word Cloud". I don't know if his function can help you (or if either of you might help him with his code). But either way, I think it's worth reading his

Re: [R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-28 Thread Jim Lemon
On 01/28/2011 07:57 AM, Greg Snow wrote: Try: library(TeachingDemos) plot(Sepal.Length~Sepal.Width, data=iris) tmp.y<- iris$Sepal.Length for( i in unique(iris$Sepal.Width) ) { tmp<- iris$Sepal.Width == i tmp.y[ tmp ]<- spread.labs( tmp.y[tmp], .6*strheight('A'),

Re: [R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-27 Thread Greg Snow
e- > From: Kevin Wright [mailto:kw.s...@gmail.com] > Sent: Thursday, January 27, 2011 10:27 AM > To: Tal Galili > Cc: Greg Snow; r-help@r-project.org > Subject: Re: [R] boxplot - code for labeling outliers - any suggestions > for improvements? > > My colleagues that use one of th

Re: [R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-27 Thread Kevin Wright
t; > -Original Message- >> > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> > project.org] On Behalf Of Tal Galili >> > Sent: Wednesday, January 26, 2011 4:05 PM >> > To: r-help@r-project.org >> > Subject: [R] boxplot - code for

Re: [R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-27 Thread Tal Galili
> > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Behalf Of Tal Galili > > Sent: Wednesday, January 26, 2011 4:05 PM > > To: r-help@r-project.org > > Subject: [R] boxplot - code for labeling o

Re: [R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-26 Thread Greg Snow
p@r-project.org > Subject: [R] boxplot - code for labeling outliers - any suggestions for > improvements? > > Hello all, > I wrote a small function to add labels for outliers in a boxplot. > This function will only work on a simple boxplot/formula command (e.g: > something like boxplo

[R] boxplot - code for labeling outliers - any suggestions for improvements?

2011-01-26 Thread Tal Galili
Hello all, I wrote a small function to add labels for outliers in a boxplot. This function will only work on a simple boxplot/formula command (e.g: something like boxplot(y~x)). Code + example follows in this e-mail. I'd be happy for any suggestions on how to improve this code, for example: -