[R] null plotting symbol ?

Liaw, Andy andy_liaw at merck.com
Mon May 5 22:37:32 CEST 2003


Don't know why you need to do that, as it seems to me that's why you pass a
vector to pch, etc., so you won't have to come back and use points().
Anyway, using NA would work.  (However, I suspect I still don't understand
your problem.)

Andy

> -----Original Message-----
> From: tblackw at umich.edu [mailto:tblackw at umich.edu]
> Sent: Monday, May 05, 2003 4:23 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] null plotting symbol ?
> 
> 
> 
> I am calling  plot()  with argument pch as a vector of numeric 
> symbol codes, the same length as x and y.  Is there some code 
> which produces no symbol - a blank - so that I can come back 
> with a second call to  points()  and fill in these locations 
> using a different fill color and a different symbol size ?  
> 
> There's always a work-around, but both x and y are generated 
> on the fly by calls to  cumsum(),  so it's inconvenient to put 
> NAs into either x or y to suppress plotting that way.  Guess 
> I should *try* mixing numeric and character symbol codes, 
> although the example in  help("points")  explicitly uses a list 
> at that point.  
> 
> THX  -  tom blackwell  -  u michigan medical school  -  ann arbor  -
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list