# HG changeset patch # User moheydarian # Date 1493314700 14400 # Node ID 5d1db70d6df089638282d053377f5ed68f8cd9fc # Parent ee0ff4253269a7e9ba11870b97c7ac46b3096090 Uploaded diff -r ee0ff4253269 -r 5d1db70d6df0 heatmap2.R --- a/heatmap2.R Thu Apr 27 13:34:16 2017 -0400 +++ b/heatmap2.R Thu Apr 27 13:38:20 2017 -0400 @@ -77,13 +77,17 @@ } if(options$labels== "both"){ - labs = NULL + rlabs = NULL + clabs = NULL }else if(options$labels== "rows"){ - labs = labCol=FALSE + rlabs = NULL + clabs = labCol=FALSE }else if(options$labels== "columns"){ - labs = labRow=FALSE + rlabs = labRow=FALSE + clabs = NULL }else if(options$labels== "none"){ - labs = labRow=FALSE, labCol=FALSE + rlabs = labRow=FALSE + clabs = labCol=FALSE } else{ } @@ -93,7 +97,7 @@ pdf(file="Rplot.pdf") colorscale heatmap.2(linput, - dclust, hclust, scale = options$scale, + dclust, hclust, scale = options$scale, rlabs,clabs, col=colfunc(50), trace="none", density.info = "none", labs, margins=c(8,2), main = options$title, key.xlab= options$key, keysize=1) dev.off()