Re: [R-sig-Geo] Thematic Map

2010-01-17 Thread Barry Rowlingson
On Sun, Jan 17, 2010 at 10:39 PM, Andrew Hunter wrote: > Hi I am using Waller & Gotways Leukaemia data and am trying to create a > plot of county population using RColorBrewer using the following: > > plotvar <- NY8$POP8 > plotvar <- rank(plotvar) > nclr <- 8 > plotclr <- brewer.pal(nclr,"PuOr")

[R-sig-Geo] Thematic Map

2010-01-17 Thread Andrew Hunter
Hi I am using Waller & Gotways Leukaemia data and am trying to create a plot of county population using RColorBrewer using the following: plotvar <- NY8$POP8 plotvar <- rank(plotvar) nclr <- 8 plotclr <- brewer.pal(nclr,"PuOr") colornum <- cut(plotvar, nclr, labels=FALSE) colorcode <- plotclr[col