I am using levelplot() from lattice with grids that have unequal cell sizes. This means that the boundary between two cells is not always half-way between nodes, as levelplot() assumes. The result is that some cell sizes are rendered incorrectly, which can be painfully obvious if using relatively large cells. Is there any work-around? I am using the conditioning capability of lattice and therefore image() would not be a good way to go. Thanks, Scott Waichler Pacific Northwest National Laboratory scott.waichler _at_ pnl.gov
On 4/25/07, Waichler, Scott R <Scott.Waichler at pnl.gov> wrote:> I am using levelplot() from lattice with grids that have unequal cell > sizes. This means that the boundary between two cells is not always > half-way between nodes, as levelplot() assumes. The result is that some > cell sizes are rendered incorrectly, which can be painfully obvious if > using relatively large cells. Is there any work-around? I am using the > conditioning capability of lattice and therefore image() would not be a > good way to go.You might be able to use the tile plot in ggplot, which allows you to specify the size of each tile (it assumes they're all the same size by default). Have a look at ?ggtile, or if you provide more info about your data, I could provide a worked example. Regards, Hadley
On 4/25/07, Waichler, Scott R <Scott.Waichler at pnl.gov> wrote:> I am using levelplot() from lattice with grids that have unequal cell > sizes. This means that the boundary between two cells is not always > half-way between nodes, as levelplot() assumes.levelplot() is not supposed to make any such assumptions. Can you provide a reproducible example please? -Deepayan> The result is that some > cell sizes are rendered incorrectly, which can be painfully obvious if > using relatively large cells. Is there any work-around? I am using the > conditioning capability of lattice and therefore image() would not be a > good way to go. > > Thanks, > Scott Waichler > Pacific Northwest National Laboratory > scott.waichler _at_ pnl.gov