[R] levelplot and unequal cell sizes
h.wickham at gmail.com
Wed Apr 25 18:31:26 CEST 2007
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.
More information about the R-help