R Under development (unstable) (2024-10-04 r87206 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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. > suppressMessages(library(gplots)) > > dat <- as.matrix(read.csv(file="dat.csv", row.names=1)) > dist2 <- function(x) as.dist(1-cor(t(x), method="pearson")) > hclust1 <- function(x) hclust(x, method = "single") > > distance <- dist2(dat) > cluster <- hclust1(distance) > > dend <- as.dendrogram(cluster) > > ## R's default recursion limits will be exceeded when plotting this dendrogram > try( gplots:::plot.dendrogram(dend) ) > try( heatmap.2(dat, Rowv=dend) ) > > ## Increase them and try again > options("expressions"=20000) > gplots:::plot.dendrogram(dend) > heatmap.2(dat, Rowv=dend) > > proc.time() user system elapsed 6.70 0.23 6.90