[R] Ploting NA location points

R.E. Darnell r.e.darnell at ncl.ac.uk
Fri Aug 11 10:17:11 CEST 2000




Kenneth Cabrera <krcabrer at epm.net.co> writes:


[...]

> 
> How can I plot a x,y coordinates, but to plot a "z" variable
> with a different color if it is a z missing value (NA)?
> 

[...]

Start with
 
plot(x[!is.na(z)],y[!is.na(z)],xlim=range(x),ylim=range(y))
points(x[is.na(z)],y[is.na(z)],col=2)


Ross Darnell
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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