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
0
votes
1 answer

implementation of Hierarchial Agglomerative clustering

i am newbie and just want to implement Hierarchical Agglomerative clustering for RGB images. For this I extract all values of RGB from an image. And I process image.Next I find its distance and then develop the linkage. Now from linkage I want to…
mGm
  • 264
  • 2
  • 12
0
votes
1 answer

Dendrogram in R. How to make new tables by each cluster

enter image description here library(mlbench) library(stats) College <- read.csv("colleges.XL.csv", header=T) ## this data has 23 columns na.college<- na.omit(College) row.names(na.college) <- NULL na.college[, c(4:23)] <-…
user3027252
0
votes
1 answer

Can multiple "d3.js Dendrogram" nodes point to the same leaf node?

I've started a new JavaScript project based on the example at: http://bl.ocks.org/mbostock/4063570 Everything with the d3 Dendrogram is great so far except that my data will probably always contain duplicate leaves (terminal nodes). In my data only…
0
votes
1 answer

Feature exatraction from dendrogram in R

Say you have the following matrix: V1 V2 V3 V4 V5 1 0 0 0 0 1 2 0 0 0 1 1 3 0 0 1 1 1 4 0 0 1 1 0 5 1 0 0 0 0 6 1 1 1 0 0 7 0 1 1 0 0 8 0 1 1 0 0 9 0 1 1 …
StudentOfScience
  • 809
  • 3
  • 11
  • 35
0
votes
1 answer

d3.js dendrogram with leaves rendered as key-value pairs

Working with d3.js and I have hierarchical data and working with this example d3 dendrogram which nearly meets my needs, but instead of a text string as the leaf, I need to display a table. The data follows this pattern: {"name": "root", …
Tim
  • 1,013
  • 3
  • 17
  • 36
0
votes
0 answers

Dendogram example seems incomplete?

In this d3.js example a dendogram is displayed. Source code is posted but it seems incomplete? Can this dendogram be rendered in a fiddle? What is the data format for this example?
blue-sky
  • 51,962
  • 152
  • 427
  • 752
0
votes
1 answer

Using a data frame with x and y to fill in a matrix

R question:I would like to use a data-frame with x coordinates in one column and y coordinates in the second column to fill in a matrix. The matrix would then be used by heatmap() to create a dendrogram. Here is an example: > head(S1) DB_num…
0
votes
1 answer

How to turn a hclust-object into JSON for D3?

I'm attempting to visualize a cluster tree using this awesome D3 layout! However, it needs data in JSON format - how do I go from a hclust-object in R to a hierarchical JSON structure? set.seed(123) m <- matrix(runif(100), nrow=10) cl <-…
jenswirf
  • 7,087
  • 11
  • 45
  • 65
0
votes
1 answer

Is it possible to layout this HTML table + customized dendrogram using MATLAB's publish command?

I would like to put together a more publication-worthy (and more easily produced) version of the diagram that I've hacked together below: Basically, it's a two part illustration with an HTML table on the left (showing different cluster assignments…
Kaelin Colclasure
  • 3,925
  • 1
  • 26
  • 36
0
votes
1 answer

Plot a tree in R given pairs of leaves and heights where they merge

I have a list of leaves in a tree and the height at which I'd like them to merge, i.e. the height of their most recent common ancestor. All leaves are assumed to be at height 0. A toy example might look…
Russ
  • 3,644
  • 1
  • 13
  • 15
0
votes
1 answer

Drawing a D3.js cluster with the smallest possible height

Is there a way to dynamically set the height of a D3.js cluster so that it will have the smallest height possible (i.e. the smallest height before the edges of the dendrogram begin to get cut off or nodes start overlapping)?
Chris Fritz
  • 1,922
  • 1
  • 19
  • 23
0
votes
0 answers

Make multiple ggplot have the same point colours in r

I need to show 3 ggplot scatterplots and one dendrogram on one page. How can I make the point colours the same in each scatter plot (i.e. I need the points for group two to be the same colour for all 3 graphs).…
Elizabeth
  • 6,391
  • 17
  • 62
  • 90
0
votes
2 answers

Python alternate way to find dendrogram

I have data of dimension 8000x100. I need to cluster these 8000 items. I am more interested in the ordering of these items. I could get the desired result from the above code for small data but for higher dimension, I keep getting runtime error…
0
votes
1 answer

function to apply ID to nodes in a dendrogram

I would like to know if there is a function that applies an identifier to all nodes in a given dendrogram (binary tree). So I want a function that after it on a given tree would do the following: attr(tr,"ID") ## should give 1 or 1…
user1562626
  • 125
  • 1
  • 7
-1
votes
1 answer

Draw dendrogram using agglomerative algorithm

I have tried making it dendrogram but it was seeming to me very wrong. Pair I have made: XB, XBZ, XBZY
Chaudhari
  • 21
  • 2
  • 8