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

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 dwinsem...@comcast.net wrote: On Oct 25, 2009, at 1:51 AM, Kang Min wrote: Hi Milton, The matrix can be generated using p =

[R] rotate levelplot

2009-10-24 Thread Kang Min
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 10 columns as y-axis, and the 5 rows as the x-axis, and the (0,0) point is at the usual bottom left hand corner. My map starts with

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 ngokang...@gmail.com 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

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