Skip to content
Prev 350735 / 398502 Next

Plot by FIPS Code using Shapefiles

Excellent suggestions Professors! I really appreciated it. This is what I
am using:

library(data.table)
max_change is my csv file while shapes is my spatial data:

max_change <-read.csv ("F:/GCM/max_change.csv")
I am plotting the results now. I am getting different plots regarding
county boundaries (most likely because I am doing something wrong). When I
use the *plot *command:

colours = brewer.pal(6,"PuRd")
I get a "beautiful" plot with the county boundaries clearly separated but
for *spplot*;

pal = brewer.pal(6,"Reds")
The county boundaries/FIPS are not defined. What am I doing wrong? Thanks
again!

Sincerely,

Shouro
On Wed, May 6, 2015 at 12:23 PM, Roger Bivand <Roger.Bivand at nhh.no> wrote: