Skip to content

Instantly share code, notes, and snippets.

@juba
Created April 12, 2016 13:05
Show Gist options
  • Save juba/d99f912838e9aada5b232a040757bcd3 to your computer and use it in GitHub Desktop.
Save juba/d99f912838e9aada5b232a040757bcd3 to your computer and use it in GitHub Desktop.
library(questionr)
library(ggplot2)
data(hdv2003)
ggplot(data=hdv2003, aes(y=age, x=sexe, fill=hard.rock)) +
geom_boxplot(position=position_dodge(width=2/3)) +
geom_point(stat="summary", fun.y=mean, shape=21, position=position_dodge(width=2/3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment