...
Code Block |
---|
library(corpcor) u<-fast.svd(sweep(expr),1,rowMeans(expr))) #to plot relative variance: plot(u$d^2/sum(u$d^2),main="Relative variance") #plot the first 4 eigengenes: par(mfrow=c(2,2)) plot(u$v[,1],main="1") plot(u$v[,2],main="2")plot(u$v[,3],main="3")plot(u$v[,4],main="4") #Identification of the "worst" offenders of the first eigengene: order(u$v[,1])[1] order(-u$v[,1])[1] plot(expr[,c(37,383)],main="37 vs 383") |
...