tests/test_ctl_long.R

library(ctl)
data(ath.metabolites)
ctl_result <- CTLscan(ath.metab$genotypes, ath.metab$phenotypes, nperm=150)

jpeg("pxmmatrix.jpg", w=1024, h=768)
  image(ctl_result,grid.col="white")
dev.off()

jpeg("pxpmatrix.jpg", w=1024, h=768)
  image(ctl_result,grid.col="white",against="phenotypes")
dev.off()

for(x in 1:3){
  jpeg(paste("phenotype",x,".jpg",sep=""), w=1024, h=768)
  plot(ctl_result[[1]])  
  dev.off()
}

Try the ctl package in your browser

Any scripts or data that you put into this service are public.

ctl documentation built on Nov. 27, 2023, 5:09 p.m.