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 post:
http://www.drewconway.com/zia/?p=2624


Cheers,
Tal


----------------Contact
Details:-------------------------------------------------------
Contact me: tal.gal...@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------




On Fri, Jan 28, 2011 at 11:37 AM, Jim Lemon <j...@bitwrit.com.au> wrote:

> 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'),
>>                maxiter=1000 )
>> }
>>
>> # optional
>> with(iris, segments(Sepal.Width, Sepal.Length, Sepal.Width+0.025, tmp.y) )
>>
>> with(iris, text(Sepal.Width+0.05, tmp.y, seq_along(tmp.y), cex=.5 ) )
>>
>>
>> There is also thigmophobe.labels in the plotrix package which is simpler
>> and works well for some plots
>>
>>  Alas, I tried thigmophobe.labels and there are just too many points.
> The best I could do was this:
>
> irisxy<-cluster.overplot(iris$Sepal.Width,iris$Sepal.Length)
> plot(irisxy)
> text(irisxy$x,irisxy$y-0.04,labels=1:150,cex=0.5)
>
> which, sad to say, ain't too good.
>
> Jim
>
>
> ______________________________________________
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to