[R] llines and NA

Bodo Ahrens Bodo.Ahrens at univie.ac.at
Wed Sep 3 16:09:23 CEST 2003


Hallo helpers,

I tried to use "llines" of package lattice in e.g.

levelplot(z~x+y,xyz, at=c.at,region=T,col.regions=col.v,main =
paste("Test",sep=""),aspect = mapasp(xyz,x=xyz$x,y=xyz$y),
panel=function(x,y,subscripts,...){
panel.levelplot(x,y,subscripts,...);
lines(linex,liney)})

The problem is that there are NAs in linex and liney and thus I get strange
line segments to infinity.

The base function "lines" is able to handle this. Any ideas how to get a
similar behavior with "llines"?

Thanks,

Bodo





-- 
Bodo Ahrens
Institut fuer Meteorologie und Geophysik, Universitaet Wien
Althanstrasse 14, A-1090 Wien, Austria
Tel: +43-1-4277-51917, Fax: +43-1-4277-9519
E-mail: Bodo.Ahrens at univie.ac.at




More information about the R-help mailing list