[R-sig-Geo] How does col.regions work in spplot?
Ken Takagi
katakagi at bu.edu
Thu Sep 20 16:07:13 CEST 2012
Mathias Seibert <mathias.seibert <at> gfz-potsdam.de> writes:
>
> Dear Ken,
>
> if I understand correctly, you want to create a plot without highlight
> borders. This can be achieved by setting col="transparent".
> using your example, try:
> spplot(nc, zcol = "rand_data", col.regions = heat.colors(100),
> col="transparent", colorkey = T)
>
> I don't know how to set the colours of the borders individually, but I
> think the solution above produces a plot looking like you wanted it.
>
> Cheers,
> Mathias
>
Mathias,
Thanks a lot! It seems to do what I needed. I was worried it was going to
leave a gap between each of the counties, but that doesn't appear to be the
case. Much more elegant than my solution.
Ken
More information about the R-sig-Geo
mailing list