Skip to content
Prev 391110 / 398506 Next

panel.rect and log scale in lattice plot

On Wed, 23 Mar 2022 09:38:34 +0000
"Garbade, Sven via R-help" <r-help at r-project.org> wrote:

            
If you str() the return value of current.panel.limits() from the panel
function with log-scaling enabled, you can see that it contains the
logarithm of the y-values, as do the y values themselves. This is
consistent with ?xyplot saying:
...although it could be more explicit.

If you take a logarithm of 10 and 500, lrect() should be able to
produce a rectangle in the right place.