# NOT RUN {
data(geneExpr)
# }
# NOT RUN {
iplotCorr(geneExpr$expr, geneExpr$genotype, reorder=TRUE,
chartOpts=list(cortitle="Correlation matrix",
scattitle="Scatterplot"))
# }
# NOT RUN {
# use Spearman's correlation
corr <- cor(geneExpr$expr, method="spearman", use="pairwise.complete.obs")
# order by hierarchical clustering
o <- hclust(as.dist(1-corr))$order
# }
# NOT RUN {
iplotCorr(geneExpr$expr[,o], geneExpr$genotype, corr=corr[o,o],
chartOpts=list(cortitle="Spearman correlation",
scattitle="Scatterplot"))
# }
Run the code above in your browser using DataLab