Create a gist now

Instantly share code, notes, and snippets.

bikemap.R
gps <- read.csv("out.csv",
header = TRUE)
library(ggmap)
mapImageData <- get_googlemap(center = c(lon = median(gps$Longitude), lat = median(gps$Latitude)),
zoom = 11,
# size = c(500, 500),
maptype = c("terrain"))
ggmap(mapImageData,
extent = "device") + # takes out axes, etc.
geom_point(aes(x = Longitude,
y = Latitude),
data = gps,
colour = "red",
size = 1,
pch = 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment