R Under development (unstable) (2023-11-26 r85638 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(ctl) Loading required package: MASS Loading required package: parallel Loading required package: qtl > data(ath.metabolites) > ctl_result <- CTLscan(ath.metab$genotypes, ath.metab$phenotypes, nperm=150) Warning message: In CTLscan(ath.metab$genotypes, ath.metab$phenotypes, nperm = 150) : argument 'phenotypes' is not a matrix, converting to numeric matrix using apply > > jpeg("pxmmatrix.jpg", w=1024, h=768) > image(ctl_result,grid.col="white") > dev.off() null device 1 > > jpeg("pxpmatrix.jpg", w=1024, h=768) > image(ctl_result,grid.col="white",against="phenotypes") > dev.off() null device 1 > > for(x in 1:3){ + jpeg(paste("phenotype",x,".jpg",sep=""), w=1024, h=768) + plot(ctl_result[[1]]) + dev.off() + } > > proc.time() user system elapsed 7.87 0.32 8.18