Skip to content

Instantly share code, notes, and snippets.

@rmnppt
Created September 7, 2015 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmnppt/101b93722eb7ad16b5bd to your computer and use it in GitHub Desktop.
Save rmnppt/101b93722eb7ad16b5bd to your computer and use it in GitHub Desktop.
uk cities with transparency mapped to population size
library(ggplot2)
library(magrittr)
library(dplyr)
library(maps)
data("world.cities")
world.cities %>%
filter(country.etc == "UK") %>%
ggplot(aes(x = long, y = lat, alpha = pop)) +
geom_point() +
coord_map()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment