[R] Problem with stripplot

David Scott d.scott at auckland.ac.nz
Wed May 12 07:19:48 CEST 1999


I have had a problem with stripplot. Documentation does say that method
="stack" is only appropriate for granular data, but I don't think that
means it should fall over.

> difference
 [1]  2.0  1.3  2.8 -2.6 -0.4 -0.4 -1.2 -1.4 -1.0  1.2 -2.6 -1.9
> stripplot(difference)
> stripplot(difference,method="jitter")
> stripplot(difference,method="stack")
Warning in y + (unlist(xo) - 1) * offset * csize : longer object length
        is not a multiple of shorter object length
Error: x and y lengths differ

Here is the code to check it.

difference<-c(2, 1.3, 2.8, -2.6, -0.4, -0.4, -1.2, -1.4, -1, 1.2, -2.6, -1.9)
stripplot(difference)
stripplot(difference,method="jitter")   
stripplot(difference,method="stack") 

I have had the same result on 0.63.2 for windows and 0.63.3 for Sun.

David Scott

_________________________________________________________________
David Scott     Division of Science and Technology, Tamaki Campus
                The University of Auckland, PB 92019
                Auckland        NEW ZEALAND
Phone: +64 9 373 7599 ext 6830     Fax: +64 9 308 2377 or 373 7001
Email:  d.scott at Auckland.ac.nz or dscott at scitec.auckland.ac.nz

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list