[R] xyplot(y~x, type="l") with missing values (NA)
Cyril Humbert
humbertc at univ-mlv.fr
Thu Oct 17 09:56:20 CEST 2002
With the function plot(x, y, type="l") points are not connected
when x or y contain a missing value (NA). Is it possible to do
the same with the lattice function xyplot() ?
For example:
library(lattice)
x <- c(1, 2, NA, 4, 5)
y <- x
plot(x, y, type="l")
xyplot(y~x, type="l")
In the first plot, the point 2 is not connected to the point 4
whereas there are in the second plot.
Thanks
--
Cyril
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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