Displaying 2 results from an estimated 2 matches for "lrect".
Did you mean:
rect
2006 Nov 13
1
bug in lrect [lattice]?
In lattice version 0.14-11 (2006/10/23), there appears
to be a small bug in lrect [lattice]: border is set to NULL
accidentally. It is easily fixed by adding one line
to lrect -- see example and hack below ...
I wasn't sure if this should be submitted as an R bug
since it is part of a package, but a core/recommended package ...
Ben Bolker
x = runif(100)
y = runif(10...
2011 Aug 28
1
Help with levelplot color assignment in lattice
...p.custom(factor.levels = c("date 3")))
As you should see, instead of having the level 0 polygon in white, and most
polygons in the first shade of yellow (level 1), most of them ar white. As
an extra, I would like to have the "NA" data appear as black, but I know I
can use "lrect" do to it.
The attached image is from the graph I can obtain from a custom fonction
calling the regular plot() and assigning colors to polygons, and
color.legend() from package plotrix to generate the color key. It gives me
the right kind of color key and colors assignment to polygons (and no...