Skip to content

Instantly share code, notes, and snippets.

@Rekyt
Created November 5, 2014 17:29
Show Gist options
  • Save Rekyt/b8d4fe9de8884c81e44f to your computer and use it in GitHub Desktop.
Save Rekyt/b8d4fe9de8884c81e44f to your computer and use it in GitHub Desktop.
ggmap basic use
library(ggmap)
sites = unique(df.table[, list(LON, LAT, interpreted.location, site.number)])
france = get_map("France", zoom = 6)
franceMap = ggmap(france)
franceMap +
geom_point(data = sites, aes(x = LON, y = LAT, color = as.factor(site.number)), size = 4) +
labs(x = "Longitude", y = "Latitude")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment