Dear Bioconductor Community,
i would like to ask a specific and simple question about defining specific arguments than the default in the heatmap.2 function of the gplots R package. In detail, if i want to use as a distance measure the pearson correlation distance and as clustering method the average for clustering both my rows(genes) and columns(samples), should i proceed like this ? :
eset # my expression set
corr.dist = function(x) as.dist(1-cor(t(x)))
avg = function(x) hclust(x, method="average")
heatmap.2(exprs(eset), distfun=corr.dist, hclustfun=avg, col=greenred(75), scale="none"....)