Skip to content

Instantly share code, notes, and snippets.

@thomaskern
Created June 18, 2011 16:52
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 thomaskern/1033268 to your computer and use it in GitHub Desktop.
Save thomaskern/1033268 to your computer and use it in GitHub Desktop.
library(ggplot2)
section = c(
rep(1,75),
rep(2,25),
rep(3,400),
rep(4,100)
)
data = data.frame(x=1:600,y=runif(600,50,200),Section=section)
p <- ggplot(data,aes(x=x,y=y,group=Section))
p = p + geom_boxplot()
print(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment