Skip to content
Prev 12621 / 63461 Next

points(*, pch=NA) does *not* not draw the point (PR#6876)

On Wed, 12 May 2004 maechler@stat.math.ethz.ch wrote:

            
I don't think we actually do.  We say 

     Points whose 'x', 'y', 'pch', 'col' or 'cex' value is 'NA' are
     omitted from the plot.

and earlier

     either be a 'character' or an integer code

I read that to mean that as.logical(NA) is incorrect, but that 
as.character(NA) is correct and should result in the point being omitted.

In short, I disagree as to which is a very strict bug (although it makes 
sense to allow logical NAs, of course).

The problems are both in FixupPch in src/main/plot.c.  Can I leave you to 
fix both?