Skip to content
Prev 302409 / 398506 Next

ggplot2 boxplot help

Hello,

Wasn't it supposed to be a boxplot?
Anyway, the main problem seems to be a df format conversion prior to 
plotting.

dat2 <- data.frame(sample=rep(NA, 2*nrow(dat)))
dat2$sample <- with(dat1, c(as.character(sample_1), as.character(sample_2)))
dat2$value <- with(dat1, c(value_1, value_2))
dat2

qplot(sample, value, data=dat2, geom="boxplot")

Hope this helps,

Rui Barradas

Em 05-08-2012 16:10, John Kane escreveu: