I have dataset about physician in cities in Turkey. For example :
Physician :
ISTANBUL 0.9 physician
ADANA 0.7 physician
ANKARA 1.8 physician
....
Specialist:
ISTANBUL 0.1 specialist
ADANA 0.7 specialist
ANKARA 0.4 specialist
I want to show on map this data but my problem is : while i'm creating map , i want to fill colour like this :
(0) -Red
(0-0.25) -Orange
(0.25-0.50) -Blue
(0.50-0.75) - Dark Blue
(0.75>) - Green
my ggplot code :
ggplot(Physician) +
geom_polygon( aes(x = long, y = lat, group = group, fill = Doluluk), color = "#D7C2C2") +
coord_map()+
scale_fill_gradientn(colours=c('Red', 'Orange', 'Blue', 'Darkblue','Green'),
values = c(0,0.25,0.5,0.75),
breaks = c(0,0.25,0.5,0.75),
oob = identity)
but , it does not work. Can anyone help pls ?