[R] stripchart with pch %in% 21:25 with bg

Jean lobry lobry at biomserv.univ-lyon1.fr
Wed Sep 23 21:18:44 CEST 2009


Dear all,

consider:

###
x <- round(rnorm(50))
stripchart(x,  pch = 21, col = "black", bg = "pink", method = "jitter")
points(0.5, 1, pch = 21, col = "black", bg = "pink", cex = 2)
###

Under R 2.9.0 the points produced by stripchart are not colored,
while points() gives the desidered output (magnified here by cex).
I found a simple workaround by redefining the function
graphics:::stripchart.default() so that the dot-dot-dot (...)
argument is forwarded the the function points().

I have also tried to source the code for striptchart.R in
https://svn.r-project.org/R/trunk/src/library/graphics/R/stripchart.R
with revision number 49800, but the output is unchanged.

Am I missing something here? Is there no simpler way to achieve
this goal? I have search the NEWS for stripchart and found only
an entry for R 2.7.2 stating that:

     o	stripchart() now passes '...' to title() (as well as to
	plot.default() and axis()). (Wish of PR#12202)

I may send a wish to R-dev, but I would like to make sure before that I
havn't miss something obvious.

Best,

Jean
-- 
Jean R. Lobry            (lobry at biomserv.univ-lyon1.fr)
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - LYON I,
43 Bd 11/11/1918, F-69622 VILLEURBANNE CEDEX, FRANCE
allo  : +33 472 43 27 56     fax    : +33 472 43 13 88
http://pbil.univ-lyon1.fr/members/lobry/




More information about the R-help mailing list