How to change ggplot legend labels and names with two layers?
问题 I am plotting the longitude and latitude coordinates of two different data frames in São Paulo map using ggmap and ggplot packages and want to label manually each legend layer: update: I edited my code below to become fully reproducible (I was using the geocode function instead of get_map). update: I would like to do this without combining the data frames. require(ggmap) sp <- get_map('sao paulo', zoom=11, color='bw') restaurants <- data.frame(lon=c(-46.73147, -46.65389, -46.67610), lat=c(-23