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")
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