[R] stripchart with pch %in% 21:25 with bg
Peter Ehlers
ehlers at ucalgary.ca
Wed Sep 23 22:21:13 CEST 2009
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
More information about the R-help
mailing list