[R-sig-Geo] Creating multipanel levelplot with common color legend

Pascal Oettli kridox at ymail.com
Thu Feb 14 01:19:37 CET 2013


Hello,

Please have a look at the 2nd example given by ?levelplot ("lattice" 
package).

It uses a data frame.

HTH,
Pascal


Le 14/02/2013 08:46, Janesh Devkota a écrit :
> Hello All,
>
> I have created a levelplot and I want to use multipanel levelplot with same
> common color legend.
>
> Lets say I have a plot with name p1.
> I tried some methods such as:
>
> print(p1, split=c(1,1,1,2), more=TRUE)
> print(p1, split=c(1,2,1,2))
>
> I couldn't control the look and feel of the plot with that function.
>
> I tried another method:
>
> print(p1, position=c(0, .5, 1, 1), more=TRUE)
> print(p1, position=c(0, 0, 1, .5))
>
> These methods would just make two columns of the plot at center.
>
> I think I need to use the trellis function but I couldn't figure out. Can
> anyone show an example of using multipanel levelplot with the common legend
> ?
>
> Thanks.
>
> Janesh
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list