[R] Clipping of display in Lattice graphics
m.g.walker at massey.ac.nz
Thu Aug 19 13:38:31 CEST 2004
I'm baffled as to how the Lattice package achieves clipping. Would
someone mind explaining this to me?
Firstly, my attempt using "just" the grid package:
If you run this you will see a datapoint and line extend into the pink area.
However, if xyplot is used, it doesn't extend past its borders:
xyplot(y~x, xlim=c(0,1), ylim=c(0,1), type=c("p","l"))
From what I understand so far:
xyplot calls panel.xyplot
panel.xyplot calls lpoints and llines
neither lpoints nor llines do much except call xy.coords and then call
lplot.xy calls grid.points and grid.lines
Where in this code does the clipping occur? I'm quite baffled really.
Thank you for considering this,
More information about the R-help