When should I use geom_map?
问题 I'm making a choropleth map with added points in ggplot. So, following the last example of the geom_map help docs I came up with this: require(ggplot2) require(maps) set.seed(47) county_map <- map_data("county", "washington") names(county_map)[5:6] <- c("state", "id") countyData <- data.frame(id = unique(county_map$id), value = rnorm(39)) map1 <- ggplot(countyData, aes(map_id = id)) + geom_map(aes(fill = value), map = county_map, colour = "black") + coord_map() + expand_limits(x = county_map