Dear R-geo user,

i wanto to change the default palette colour in map produced by ggmap.
here the code I use:
val_area <- openmap(c(43.275,12.500),
                    c(43.227,12.588),
                    minNumTiles=13,
                    mergeTiles = TRUE,
                    type='opencyclemap')
val_area_GBE = openproj(val_area,projection=proj4string(IGM_val_RK))
autoplot(val_area_GBE)+
  geom_point(aes(x=coords.x1,y=coords.x2,colour=residual,size=2),
               data=as.data.frame(IGM_val_RK))+ theme_bw()

I need to set palette where -12 is red, 0 is white and 10 is green
How can I do that?
thanks
Pierluigi

the SPDF is below:
IGM_val_RK
          coordinates var1.pred  var1.var    residual
1  (2319760, 4792010)  634,6327 157,74687  -0,3673394
2  (2320150, 4792200)  628,7983  74,52756  -4,2017249
3  (2320580, 4792030)  526,7317  55,82749   0,7317360
4  (2319700, 4791800)  629,5632 313,68535 -17,4368484
5  (2320490, 4791860)  493,9613  97,22646   7,9612578
6  (2320220, 4791880)  532,8330 142,54805  10,8330048
7  (2320110, 4791330)  655,8539 135,22875  -4,1461404
8  (2320140, 4791140)  593,0889 124,19795 -12,9111232
9  (2319970, 4790680)  454,0170  98,66146   7,0169582
10 (2320620, 4790930)  513,0831 128,38079  -1,9169430
11 (2320800, 4790670)  519,6270 242,61543  -7,3730318
12 (2321070, 4791150)  520,3922 135,25377   2,3921536
13 (2321180, 4791260)  545,9602  94,47253  -1,0397643
14 (2321490, 4791500)  615,8641 606,24544  -5,1359255
15 (2321090, 4791670)  584,8355 269,87326  -3,1644682
16 (2321420, 4791860)  618,0154 351,14850  12,0154404
17 (2321150, 4791820)  601,5144 141,94617  -2,4855818
18 (2321280, 4792080)  608,5753 407,92588 -11,4246673

-- 
Ing. Pierluigi De Rosa (PhD)
tel: 075 791 0278 / fax: 075 7823038
cel: 3497558268
skype: pierluigi.derosa

	[[alternative HTML version deleted]]

