Skip to content
Prev 4848 / 29559 Next

colorkey print order is incorrect??

Jim,

your percentage variable is read as a factor; just check:

 > class(tx3_sp$CK_PCT)

this is because R does not understand % symbols (unless you tell it). 
Convert it to numeric by

 > tx3_sp$CK_PCTN = as.numeric(unlist(strsplit(tx3_sp$CK_PCT,"%")))

and use spplot on the new variable. The as.table=TRUE argument does not 
have an effect when plotting a single variable only.

Thanks; the list is aware of the NY Times article:
https://stat.ethz.ch/pipermail/r-sig-geo/2009-January/004789.html
--
Edzer
Jim Burke wrote: