hclust Questions

1

I am trying implement hierarchical clustering in R : hclust() ; this requires a distance matrix created by dist() but my dataset has around a million rows, and even EC2 instances run out of RAM. Is...
Richierichlad asked 6/12, 2016 at 6:20

1

I am using the regular method to do a Hierarchical Clustering project. mydata.dtm <- TermDocumentMatrix(mydata.corpus) mydata.dtm2 <- removeSparseTerms(mydata.dtm, sparse=0.98) mydata.df &lt...
Autocratic asked 7/2, 2015 at 3:7

2

In Matlab you can designate the number of nodes in a dendrogram that you wish to plot as part of the dendrogram function: dendrogram(tree,P) generates a dendrogram plot with no more than P leaf nod...
Hanghangar asked 23/7, 2014 at 19:36

3

Solved

I am trying to plot the results of a hierarchical clustering in R as a dendrogram, with rectangles identifying clusters. The following code does the trick for a vertical dendrogram, but for a hor...
Bonanno asked 10/6, 2014 at 11:55

1

Solved

I tried to construct the clustering method as function the following ways: mydata <- mtcars # Here I construct hclust as a function hclustfunc <- function(x) hclust(as.matrix(x),method="com...
Octillion asked 3/12, 2013 at 5:14

2

Solved

Using plot(hclust(dist(x))) method, I was able to draw a cluster tree map. It works. Yet I would like to get a list of all clusters, not a tree diagram, because I have huge amount of data (like 150...
Jeopardous asked 29/6, 2011 at 9:5

1

Solved

Has anybody found a workaround to the apparent bug in R 3 which prohibits changing the label size on a Cluster Dendrogram? The following code used to work fine before updating R to 3.01 (prior ver...
Reahard asked 21/6, 2013 at 9:45

2

Solved

I am trying to draw a dendrogram from the hclust function output. I hope the dendrogram is horizontally arranged instead of the default, which can be obtain by (for example) require(graphics) hc &...
Maus asked 2/1, 2013 at 6:55

3

Solved

I use xlab="" to suppress the x-label but still get a 'sub-x-label' in my dendrogram. How can I remove this and remove any extra space under the dendrogram? require(graphics) hc <- hclust(dis...
Gorge asked 17/9, 2012 at 16:3

2

I have coloured the leaves in a dendrogram as follows require(graphics) dm <- hclust(dist(USArrests[1:5,]), "ave") df<-data.frame("State"=c("Alabama","Alaska","Arizona","Arkansas","Califor...
Strigose asked 15/8, 2012 at 10:37

1

Solved

heatmap.2 defaults to dist for calculating the distance matrix and hclust for clustering. Does anyone now how I can set dist to use the euclidean method and hclust to use the centroid method? I pro...
Crissycrist asked 24/7, 2011 at 12:22

1

Solved

I generated this dendrogram using R's hclust(), as.dendrogram() and plot.dendrogram() functions. I used the dendrapply() function and a local function to color leaves, which is working fine. I ha...
Milena asked 4/4, 2009 at 20:21
1

© 2022 - 2024 — McMap. All rights reserved.