[R] text overlap in plot

David martin vilanew at gmail.com
Fri Jun 24 16:07:01 CEST 2011


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



More information about the R-help mailing list