I am plotting using this:
myPalette <- colorRampPalette(rev(brewer.pal(10, "Spectral")))
usamap <- map_data("state")
ggplot(data=tmpsub,aes(x=col,y=row,color=m)) +
geom_point()+
scale_colour_gradientn(name = "Test",colours = myPalette(10), limits=c(0,1))+
geom_polygon( data=usamap, aes(x=long, y=lat,group=group),size=0.3, colour="black",fill=NA)+
xlab('Longitude')+
ylab('Latitude')+
coord_map("albers", lat0=39, lat1=45)+
theme_bw()+
theme(legend.position = c(.93,.20),
panel.grid = element_blank())
To get this map
How can I "shift" the middle portion of the legend upwards? That is, I want the yellow portion (~0.5) to go upwards so that I can have more blue and less red in the figure.