[Rd] stripchart() labels

John Maindonald john.maindonald@anu.edu.au
Wed, 11 Jul 2001 09:29:32 +1000

I propose to replace add a ... argument to stripchart(),
and to modiffy the following code fragment as shown.
[The only changes are the addition of ... arguments
in two calls to axis()]

plot(xlim, ylim, type = "n", ann = FALSE, axes = FALSE)
     if (vertical) {
         if (n > 1)
             axis(1, at = 1:n, lab = names(groups), ...)  # ... argument added
     else {
         if (n > 1)
             axis(2, at = 1:n, lab = names(groups), ...)  # ... argument added

Then one can do the following:
   stripchart(weight~group, las=2)

   stripchart(weight~group, vertical=TRUE, las=2)

This is often the most effective way to deal with the problem
of overlapping labels, so that some labels do not appear.
John Maindonald               email : john.maindonald@anu.edu.au
Statistical Consulting Unit,  phone : (6125)3473
c/o CMA, SMS,                 fax   : (6125)5549
John Dedman Mathematical Sciences Building
Australian National University
Canberra ACT 0200

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch