Skip to content
Prev 261580 / 398503 Next

lattice panel fine control

It is perhaps not entirely clear from ?update, but update replaces
your original lattice call with your new call and re-drawsthe plot.
This means that the panel function used for the update() plot is the
one in update(), which only draws the line. That's why you see no
points.

Obviously, then, you need to include both points and abline in your
panel call to get both. However, if you would like to follow the
strategy that you have indicated, you can do so by using the layer()
functionality in the lattceExtra package, in which you would do
something similar to what you have shown.

library(latticeExtra)  ## after you have installed it from CRAN, possibly
?layer

for further info.

Your numerous other questions can be answered by close reading of the
?xyplot Help file and/or adding additional functionality to your panel
call. For example, text can be added via the panel.text() function.

?lattice

will get you info on this and other low level graphics functionality,
as well as references to consult. I would also suggest Deepayan
Sarkar's book, if you intend to use lattice seriously.

Cheers,
Bert
On Wed, Jun 1, 2011 at 10:00 AM, maxbre <mbressan at arpa.veneto.it> wrote: