Hi,
When using hclustfun argument in heatmap.2 function, I get the error message below. Note that I want to use average linkage with pearson correlation.

 heatmap.2(as.matrix(mtcars), dendrogram = "none", hclustfun  = hclust(as.dist(1-cor(t(as.matrix(mtcars)), method = "pearson")),method = "average"))
Error in heatmap.2(as.matrix(mtcars), dendrogram = "none", hclustfun = hclust(as.dist(1 -  : 
    could not find function "hclustfun"


I use the R version
          
> version     _                           
platform       x86_64-redhat-linux-gnu     
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          2                           
minor          5.1                         
year           2007                        
month          06                          
day            27                          
svn rev        42083                       
language       R                           
version.string R version 2.5.1 (2007-06-27)

thanks,




      
	[[alternative HTML version deleted]]

