Re: [R] panel.rect and log scale in lattice plot

2022-03-23 Thread Garbade, Sven via R-help
()', too. Von: Deepayan Sarkar Gesendet: Mittwoch, 23. März 2022 12:05 An: Ivan Krylov Cc: Garbade, Sven via R-help; Garbade, Sven Betreff: Re: [R] panel.rect and log scale in lattice plot On Wed, Mar 23, 2022 at 4:08 PM Ivan Krylov wrote: > > On Wed,

Re: [R] panel.rect and log scale in lattice plot

2022-03-23 Thread Deepayan Sarkar
On Wed, Mar 23, 2022 at 4:08 PM Ivan Krylov wrote: > > On Wed, 23 Mar 2022 09:38:34 + > "Garbade, Sven via R-help" wrote: > > >cpl <- current.panel.limits() > > If you str() the return value of current.panel.limits() from the panel > function with log-scaling enabled, you can see

[R] panel.rect and log scale in lattice plot

2022-03-23 Thread Garbade, Sven via R-help
Dear all, I posted this on Stack Overflow, but there is no response, so I try it here again. I'm wondering about how to draw a highlighted rectangle with log y-axis in a trellis/lattice plot. My idea was to use panel.rect(), which works without a log scale: library(lattice) set.seed(1) y