Skip to content

How to correct this

2 messages · Jin.Li@csiro.au, Sundar Dorai-Raj

#
Jin.Li at csiro.au wrote:

            
If you are using Lattice (where grid is a more natural fit) then you can 
do the following:

library(lattice)
library(grid)
xyplot(0.5 ~ 0.5,
        panel = function(x, y, ...) {
          grid.circle(x, y, 0.5, default.units = "native")
          panel.xyplot(x, y, ...)
        },
        xlim = c(0, 1),
        ylim = c(0, 1))

I'm not sure how grid is supposed to behave in a non-trellis.device.

--sundar