[R] Multiple lattice levelplots from matrices

2012-08-26 Thread Jens Peter Andersen / Region Nordjylland
Dear R-users, My goal is to construct a levelplot (from the lattice package) with 4 or more individual plots sharing the same colorkey. While this appears to be relatively simple using functions, I haven't been able to find a solution using data matrices. An example of a working levelplot with

Re: [R] Multiple lattice levelplots from matrices

2012-08-26 Thread ilai
You want array not list, as in levelplot(array(rnorm(400,rep(1:4,each=100)),c(10,10,4))) abind::abind is useful sometimes for binding preexisting matrices to arrays. Cheers On Sun, Aug 26, 2012 at 5:57 AM, Jens Peter Andersen / Region Nordjylland je...@rn.dk wrote: Dear R-users, My goal