[R] tmap colour scale

Jim Lemon drjimlemon at gmail.com
Wed Dec 9 00:02:13 CET 2015


Hi Freddy,
Have you tried rev() on the palette?

Jim


On Wed, Dec 9, 2015 at 7:32 AM, Freddy Eggleton <freddyeggleton at yahoo.co.uk>
wrote:

> Hi,
>
> I am trying to plot Conservative Vote % per borough for London using tmap
> however the legend colours boroughs with a high Conservative % as light
> blue and boroughs with a low % of conservative votes as dark blue. How do i
> reverse this scale so that areas with the most Conservative votes are
> darkest?
>
> my code is as follows;
>
> tm_shape(lndbor) + tm_polygons("CON", style = "kmeans", palette =
> "-Blues", title = "Conservative Vote (%)")
>
> Thanks,
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list