Skip to content
Prev 333111 / 398513 Next

making a barplot with table of experimental conditions underneath (preferably ggplot2)

On 11/14/2013 01:24 AM, N.Hubner at ncmls.ru.nl wrote:
Hi Nina,
This isn't in ggplot2, but it might help:

library(plotrix)
plotbg<-"rect(0,0,5,7,col=\"lightgray\");grid(col=\"white\",lty=1)"
exp_con<-paste(df$method,df$enzyme,df$denaturation,sep="\n")
barp(df$mean,names.arg=rep("",4),col="darkgray",
  ylab="# peptides identified",do.first=plotbg)
mtext(exp_con,side=1,at=1:4,line=3)
dispersion(1:4,df$mean,df$stdev)

Jim