Questions tagged [dendrogram]

A dendrogram (or tree diagram) is a graph used to represent relationships in hierarchical clustering.

Tag usage

Questions on tag should be about implementation and programming problems, not about the statistical or theoretical properties of the technique.
Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

586 questions
-1
votes
1 answer

how to draw a simple dendrogram using python?

I want to draw a dendrogram without using python libraries, so I want to implement a native program to do that with a small dataset. How can I achieve that?
Assia
  • 11
  • 4
-1
votes
1 answer

Given the dendrogram, is this an anomaly?

I used Scipy to create the following dendrogram: I used the Levenshtein distance to create a distance matrix with scipy.spatial.distance.pdist, which I then used for clustering using scipy.cluster.hierarchy.ward. This was the output I got after I…
qeddot
  • 47
  • 7
-1
votes
1 answer

Adjustments to the graph of a cluster dendrogram

I am having a little problem in generating a cluster dendrogram. The cluster technique is working, the question is just the graph. I would like to make minor adjustments to it. The distance between the names on the X axis and the end of the lines…
-1
votes
2 answers

Can't Plot Dendrogram (invalid dendrogram input error)

I have 583 observations within my dataset, out of which I need to use 100 to make a Dendrogram. But I am getting the following error in the plot() function step. how to troubleshoot/solve this? ##For 100 Observations set.seed(44) idx_100 <-…
-1
votes
1 answer

How can I rotate a dendrogramm (tree diagram)?

I would like to create a tree diagram (or often called Dendrogram) like descriped here: http://bl.ocks.org/d3noob/8323795. Two questions: How can I rotate it 180 degrees (Diagram should go from right to left)? Is it possible to start off with 3…
Mads
  • 1
-1
votes
1 answer

Plotting hierarchical clustering dendrograms for large data sets

I have a huge data set of time series data. In order to visualise the clustering in python, I want to plot time series graphs along with the dendrogram as shown below. I tried to do it by using subgrid2plot() function in python by creating two…
Shivam Mitra
  • 1,040
  • 3
  • 17
  • 33
-1
votes
1 answer

R dendrogram by cluster

I am using R to plot a dendrogram of a hierarchial clustering. I have realised a hierarchical clustering of ~3000 elements. The plot of the corresponding tree is obviously super messy. These 3000 elements are clustered in 20 groups using the cutree…
Oselm
  • 7
  • 3
-1
votes
1 answer

R programming: how to cut dendrogram in 3 steps and show the plot in texts

Please refer to the attached code: train <- read.csv("~/Desktop/R/2014data.csv") d <- dist(train, method = "euclidean") # distance matrix fit <- hclust(d, method="ward") plot(fit) Here is the output figure: How to cut this dendrogram in 4-5…
Norman
  • 121
  • 6
-1
votes
1 answer

Dendrogram in C#

I implemented a version of AGNES (agglomerative clustering algorithm) in C#, but I am struggling to implement a dendrogram. I implemented a binary tree using a treeview component however I will need to build a "real" dendrogram for analysis of…
-1
votes
1 answer

Constrain y-axis on R dendrogram plot

I'd like to constrain the y-axis on dendrogram plot in R. Now, I have the y-axis ranging from 1 to 3000. Is the correct function to achieve this ylim? How should I do it? plot(fit, main = 'Dendrogram', xlab = '', ylim =c(1,500), sub ='', axes =…
Roger
  • 11
  • 5
-1
votes
1 answer

Efficient algorithm for dendrogram cutoff

I have implemented an algorithm for hierarchical clustering and a simple method for drawing the dendrogram in C#. Now I want to add dendrogram cutoff method and another one for coloring dendrogram branches. What would be an efficient algorithm to do…
Sebastian Widz
  • 1,962
  • 4
  • 26
  • 45
-1
votes
1 answer

How to generate a labelled dendogram using agnes?

Using the code from : http://en.wikibooks.org/wiki/Data_Mining_Algorithms_In_R/Clustering/Hierarchical_Clustering Here is how to generate a dendogram : # import data x <- read.table("data.txt") # run AGNES ag <- agnes (x, false,…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
-1
votes
1 answer

X Position by Generation in Dendrogram

I am using the standard dendrogram layout in D3: http://mbostock.github.com/d3/ex/cluster.html But I would like the child nodes to be fixed to the position of their "generation", so for instance, vis.visualization would appear at the same X…
Elijah
  • 4,609
  • 3
  • 28
  • 36
-2
votes
1 answer

Dendrograms in R of data that is already categorized in R

I already have text data that is categorized like what is shown below: main_category sub_category_level1 sub_category_level2 plants fruit apples plants fruit oranges plants fruit plants veggies carrots plants veggies plants veggies…
ProfLonghair
  • 81
  • 1
  • 8
-2
votes
1 answer

Custom dendrogram in D3

maybe this is not the place for this question, but maybe someone is an experienced user of D3.js. I would like to create a dendrogram where I initially show nodes from different levels (precomputed) and nodes are colored differently. The nodes have…
Liis Kolberg
  • 153
  • 12
1 2 3
39
40