Hi all.
I successfully run my scripts to get DEs genes between different libraries, but when I plot the MD graphics, the last coefficient inverts the colors in the plot. The code for graphics is:
par(mfrow=c(2,2),mar=c(2,3,2,3))
for (i in 1:4){
plotMD(tfit, coef =colnames(tfit)[i], xlab = "Average log-expression",
ylab = "log-fold-change", main = colnames(tfit)[i] ,status=dt3[,i],
hl.cex=c(0.7,0.7,0.7))
abline(h=0,lty=3,col="red")
}
The contrast matrix is:
> contrast_matrix
Contrasts
Levels Adult_vs_N4 Adult_vs_N5 N4_vs_N5 Adult_vs_Embryo
Ov_Adult 1 1 0 1
Embryo 0 0 0 -1
Ov_Nynph4 -1 0 1 0
Ov_Nynph5 0 -1 -1 0
And the plot looks like: https://chodar.wixsite.com/rplot
Any idea of what happens?
Great, thanks vary much Gordon!.