[R-sig-Geo] raster plotting question

Pascal Oettli kridox at ymail.com
Mon Jul 28 05:49:28 CEST 2014


Hi Erin,

You can stack "a" and "b" together then use the "rasterVis" package to
plot the Raster* object.

Best,
Pascal

On Sat, Jul 26, 2014 at 1:36 AM, Hodgess, Erin <HodgessE at uhd.edu> wrote:
> Hello R-Sig-Geo People!
>
>
>
> I have a quick question, please:
>
>
>
> I have two raster layer objects, a and b.
>
>
>
> I want to plot them on one page.  No problem.
>
>
>
>> par(mfrow=c(1,2))
>
>> plot(a)
>
>> plot(b)
>
>
>
> But I would like to use the same colors for each.  How can I do that, please?
>
>
>
> Thanks,
>
> Erin
>
>
>
>         [[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



-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan



More information about the R-sig-Geo mailing list