Matt, this is great, finally got something that I can work with. Two follow ups (see even attached pic)
1 Legend - fill. I can’t figure out how to adjust labels to reflect the units of fill. Perhaps You can simply use your own previous “reprex” to show how to adjust title, unit labels, etc in the legend?
2 Legend - cities. I added cities to the map with geocode and geo_point. But I can’t figure out how to adjust the legend labels. I want to label 4 “medium” and 3 “large” cities … and … display with different size points/colors on map. See my reprex below - can u use this to demonstrate how to add these + appropriate labels?
Thx much
library(ggmap)
library(tidyverse)
# FIRST - add city "large size"
city_names1 <- c("Malmö", "Lund", "Helsingborg") # big cities. city4="4"
locations1 <- geocode(city_names1) # find location of cities
cities1 <- tibble(name=city_names1, lat=locations1$lat, lon=locations1$lon) # pull them together in a table
# SECOND - add city "medium size".
city_names2 <- c("Ängelholm, Sweden", "Trelleborg, Sweden", "Landskrona, Sweden", "Kristianstad, Sweden") # medium cities. city4="3"
locations2 <- geocode(city_names2) # find location of cities
address=Kristianstad,+Sweden&key=xxx-FhctmI0obuHVFbumw43BPcvLWxQ
cities2 <- tibble(name=c("Ängelholm", "Trelleborg", "Landskrona", "Kristianstad"),
lat=locations2$lat, lon=locations2$lon) # rename more simply.. put in table