zooming in a cluster tree
1
0
Entering edit mode
dhaarini s ▴ 70
@dhaarini-s-3305
Last seen 10.3 years ago
Hi all! I am new to R. I have clustered the samples (columns) using hclust function. Since there are a huge number of samples, 291, the sample names in the cluster tree is cluttered. Please suggest if i can zoom the cluster plot or what else can I do? Please help! I used the following steps to cluster: >dist_sample <- as.dist(1-cor(exprs(eset)) >hc_samples <- hclust(dist_sample, method="average") >plot(hc_samples) Thanks in advance! Regards, S.Dhaarini [[alternative HTML version deleted]]
• 3.1k views
ADD COMMENT
0
Entering edit mode
Thomas Girke ★ 1.7k
@thomas-girke-993
Last seen 9 months ago
United States
For this, you may want to explore the dendrogram documentation with '?dendrogram'. In your example, the zooming can be achieved by changing the xlim/ylim values in the following plotting command: plot(as.dendrogram(hc_samples), xlim = c(1,20), ylim = c(1,50)) Thomas On Sun, May 03, 2009 at 11:48:09PM +0530, dhaarini s wrote: > Hi all! > I am new to R. I have clustered the samples (columns) using hclust function. > Since there are a huge number of samples, 291, the sample names in the > cluster tree is cluttered. Please suggest if i can zoom the cluster plot or > what else can I do? > Please help! > I used the following steps to cluster: > >dist_sample <- as.dist(1-cor(exprs(eset)) > >hc_samples <- hclust(dist_sample, method="average") > >plot(hc_samples) > > Thanks in advance! > Regards, > S.Dhaarini > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor >
ADD COMMENT

Login before adding your answer.

Traffic: 1622 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6