I have two parts (a) : i solve it using map , (b): depend on (a) using filter. (a) plot all the cities in the data set using map
(b) based on (a)
plot citys dot is coloured by the variable(wsdi) predicted for year(2100) in scenario( RCP2.6)
(a)
install.packages("ggplot2")
install.packages("tidyverse")
library(ggplot2)
library(tidyverse)
map_world<- borders("world",fill="white",colour="gray80")
map<- ggplot()+map_world+ylim(-60,80) #empty map
mp
mp1<- mp+geom_point(aes(x=ex$lon,y=ex$lat),color="darkblue",fill=ex$city)
mp1
(there is error massege in name of one city )
I try to use this code before, before solve
install.packages("DataEditor")
library(DataEditR)
ex_subset<- data_edit(x=ex)
(b)
mp_RCP2.6<- mp1+geom_point(wsdi%>% filter year==2100& scenario=="RCP2.6")
mp_RCP2.6
but i dont have result ?