Created
December 8, 2015 01:00
-
-
Save njtierney/e5da929db3d31bf91f49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assuming data has columns named something like: "lat", "long", and "timestamp" | |
library(ggmaps) | |
library(ggplot2) | |
ggplot(data = data, | |
aes(x = lat, | |
y = long)) + | |
geom_point() + | |
coord_map() | |
# facet_wrap(~timestamp) | |
# using an interactive model html widgets | |
library(htmlwidgets) | |
library(leaflet) | |
# experimental, might not work! | |
m <- leaflet(data) %>% addCircles | |
m | |
# try and colour according to time | |
m %>% addCircleMarkers(colour = timestamp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment