{
data(stemHypoxia)
##Just to make a balanced dataset in the Fisher sense (2 samples per
## time*oxygen levels)
design<-design[design$time %in% c(0.5,1,5) & design$oxygen %in% c(1,5,21), ]
design$time <-as.factor(design$time)
design$oxygen<-as.factor(design$oxygen)
rownames(M)<-M[, 1]
#Keeping appropriate samples only
M<-M[, colnames(M) %in% design$samplename]
##ANOVA decomposition
fit<-lmdme(model=~time+oxygen+time:oxygen, data=M, design=design)
##ASCA for all the available terms, on those subjects/genes where at least
##one interaction coefficient is statistically different from zero (F-test
##on the coefficients).
id<-F.p.values(fit,term="time:oxygen")<0.001
decomposition(fit, decomposition="pca", scale="row", subset=id)
## Not run:
# par(mfrow=c(2,2))
#
# ##Does not call par inside
# screeplot(fit,mfcol=NULL)
#
# ##Just the term of interest
# screeplot(fit,term="time")
#
# ##In separate graphics
# screeplot(fit,term=c("time","oxygen"),mfcol=c(1,1))
#
# ##All term in the same graphic device
# screeplot(fit,mfcol=c(1,3))
#
# ##All in the same graphic
# screeplot(fit,independent=FALSE)
# ## End(Not run)
}
Run the code above in your browser using DataLab