Re: [R] rotate levelplot

2009-10-25 Thread Kang Min
Hi David, Thanks a lot for the simple but effective solution. I got what I wanted by doing a levelplot(t(q2)). Kang Min On Oct 25, 8:46 pm, David Winsemius wrote: > On Oct 25, 2009, at 1:51 AM, Kang Min wrote: > > > Hi Milton, > > > The matrix can be generated using > > > p = matrix(1:50, nrow=

Re: [R] rotate levelplot

2009-10-25 Thread David Winsemius
On Oct 25, 2009, at 1:51 AM, Kang Min wrote: Hi Milton, The matrix can be generated using p = matrix(1:50, nrow=5) If I just use levelplot(p), it gives me a graph that is vertical. How can I rotate it so it becomes horizontal? I cannot do q = t(p); levelplot(q) because this is representing

Re: [R] rotate levelplot

2009-10-24 Thread Kang Min
Hi Milton, The matrix can be generated using p = matrix(1:50, nrow=5) If I just use levelplot(p), it gives me a graph that is vertical. How can I rotate it so it becomes horizontal? I cannot do q = t(p); levelplot(q) because this is representing a map from a piece of land, transposing the data

Re: [R] rotate levelplot

2009-10-24 Thread milton ruser
Hi Kang, Could you send a reproducible sample-code? Bests miltinho On Sat, Oct 24, 2009 at 11:32 PM, Kang Min wrote: > Hi all, > > I have a matrix with 5 rows and 10 columns, which represent the grids > on a rectangular map. > I used the code below to plot, but it gives me the map with the 1