Skip to content

Instantly share code, notes, and snippets.

@robwschlegel
Created July 10, 2017 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robwschlegel/d054b6b5c6d3f961f848a7567a863a0c to your computer and use it in GitHub Desktop.
Save robwschlegel/d054b6b5c6d3f961f848a7567a863a0c to your computer and use it in GitHub Desktop.
goats %>%
group_by(year) %>%
select(-ccode, -country.name) %>%
summarise(value = mean(value)) %>%
ggplot(aes(x = year, y = value)) +
geom_boxplot(data = goats, aes(group = year)) +
geom_smooth(method = "lm")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment