From baron@cattell.psych.upenn.edu  Sat Sep 14 18:35:34 2002
From: baron@cattell.psych.upenn.edu (baron@cattell.psych.upenn.edu)
Date: Sat, 14 Sep 2002 19:35:34 +0200 (MET DST)
Subject: missing data in stripchart (PR#2018)
Message-ID: <200209141735.TAA07686@pubhealth.ku.dk>

Full_Name: Jonathan Baron
Version: 1.5.1
OS: Linux
Submission from: (NULL) (151.201.155.186)


The documentation of stripchart() says that "NA's are allowed in
the data."  I think this would imply that

stripchart(nprob[cancer==4] ~ probtype[cancer==4],meth="stack")

should work even if nprob has a missing datum in the relevant range.
I get the following error message:

Error in xy.coords(x, y) : x and y lengths differ
In addition: Warning message: 
longer object length
is not a multiple of shorter object length in: y + (unlist(xo, use.names =
FALSE) - 1) * offset * csize 

The following works.  There was one missing datum.

stripchart(nprob[cancer==4 & !is.na(nprob)] ~ probtype[cancer==4 &
!is.na(nprob)],meth="stack")

So, either the behavior or the documentation appears to need changing.
I would prefer to change the behavior so it matches the documentation.

Jon


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


missing data in stripchart (PR#2018)
baron@cattell.psych.upenn.edu