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/
I think that it's a good idea, although I have rarely made use of pch > 20. This reminds me to pass on a very belated thank-you to the developer(s) who implemented the formula version for stripchart, which I had promised to do myself quite a long time ago. Thanks, folks! Peter Ehlers Jean lobry wrote:> 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