Skip to content

Instantly share code, notes, and snippets.

@hrbrmstr
Created February 21, 2017 23:03
Show Gist options
  • Save hrbrmstr/ebbb1b500c12e899504c33a262d41586 to your computer and use it in GitHub Desktop.
Save hrbrmstr/ebbb1b500c12e899504c33a262d41586 to your computer and use it in GitHub Desktop.
tt %>%
mutate(
laststation = as.character(laststation),
TagID = as.character(TagID)
) %>%
group_by(laststation) %>%
ggplot(aes(TagID, kmday)) +
geom_segment(aes(xend=TagID, yend=0)) +
geom_point(shape="—", size=5) +
facet_wrap(~laststation, nrow=1, scales="free_x") +
theme_ipsum_rc(grid="Y") +
theme(strip.text=element_text(hjust=0.5)) +
theme(panel.spacing.x=unit(0, "lines"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment