Skip to content

Instantly share code, notes, and snippets.

@Myfanwy
Forked from hrbrmstr/one_fish_two_fish.r
Created February 21, 2017 23:26
Show Gist options
  • Save Myfanwy/37789b773039d0a7859f73778db18d6d to your computer and use it in GitHub Desktop.
Save Myfanwy/37789b773039d0a7859f73778db18d6d 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