[R] xyplot(y~x, type="l") with missing values (NA)

Deepayan Sarkar deepayansarkar at yahoo.com
Thu Oct 17 21:06:10 CEST 2002



This can be called a bug, I think. No easy fix right now, but I'll try to do
something for future versions.

Deepayan

--- Cyril Humbert <humbertc at univ-mlv.fr> wrote:
> 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
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


__________________________________________________



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