Re: [R] text overlap in plot

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Fri, 24 Jun 2011 08:36:50 -0600

Look at the spread.labs function in the TeachingDemos package or the spread.labels function in the plotrix package.

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of David martin Sent: Friday, June 24, 2011 8:07 AM
To: r-help_at_stat.math.ethz.ch
Subject: [R] text overlap in plot

Hey,
Here is a snippet that generated a boxplot and separates points so that they do not overlap. I have a problem to avoir text overlapping. Any help would be helpful.

>

attach(InsectSprays)
boxplot(count ~ spray, data = InsectSprays, outpch = NA) stripchart(count ~ spray, data = InsectSprays,

            vertical = TRUE, method = "jitter",
            pch = 21, col = "maroon", bg = "bisque",
            add = TRUE)

text(count ~ spray , row.names(InsectSprays), pos=4,cex=0.6) detach(InsectSprays)

thanks david



R-help_at_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.

R-help_at_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. Received on Fri 24 Jun 2011 - 14:41:09 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 24 Jun 2011 - 15:00:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive