2 function(QList,Alpha,Beta,AList="F")
5 plot(1, type="n", axes=F, xlab="", ylab="", main="No 3' end No 5' end",cex.main=1)
6 plot(1, type="n", axes=F, xlab="", ylab="",main="With 3' end No 5' end",cex.main=1)
7 plot(1, type="n", axes=F, xlab="", ylab="",main="With 5' end No 3' end",cex.main=1)
8 for (i in c(1,2,4,6,8)){
10 hist(QList[[i]][QList[[i]]<.98&QList[[i]]>0],prob=T,col="blue",breaks=100,main=ifelse(i==1,"With 5' end With 3' end",""),cex.main=1, xlim=c(0,1),xlab=paste("Q alpha=",round(alpha.use,2)," beta=",round(Beta[i],2),sep=""))
11 if(i==1)mtext("Ng=1",side=4, cex=1)
12 if(i==8)mtext("Ng=2", side=4,cex=1)
13 tmpSize=length(QList[[i]][QList[[i]]<.98])
15 tmpseq=seq(0.001,1,length=1000)
17 lines(ll,dbeta(ll,alpha.use,Beta[i]),col="green",lwd=2)
18 legend("topright",c("Data","Fitted density"),col=c("blue","green"),lwd=2,cex=.5)
21 for (i in c(3,5,7,9)){
23 hist(QList[[i]][QList[[i]]<.98&QList[[i]]>0],prob=T,col="blue",breaks=100,main=ifelse(i==1,"With 5' end With 3' end exons",""),xlim=c(0,1),xlab=paste("Q alpha=",round(alpha.use,2)," beta=",round(Beta[i],2),sep=""))
24 if(i==9)mtext("Ng=3", side=4,cex=1)
26 tmpSize=length(QList[[i]][QList[[i]]<.98])
28 tmpseq=seq(0.001,1,length=1000)
30 lines(ll,dbeta(ll,alpha.use,Beta[i]),col="green",lwd=2)
31 legend("topright",c("Data","Fitted density"),col=c("blue","green"),cex=.5, lwd=2)