On Fri, 2007-03-09 at 01:01 +0100, bunny , lautloscrew.com
wrote:> Dear all,
>
> i performed a clusteranalysis - which worked so far...
> i plotted the dendrogram and sooo many branches, a rough sketch would
> be enough ;)
>
> i tried max.levels therefore which worked, but not for the plot...
(re-)read ?dendrogram. function cut.dendrogram() can prune a tree's
lower branches. You can plot the returned object's $upper component,
which is itself an object of class "dendrogram".
There is an example in ?dendrogram of using cut.
HTH
G
>
> i used the following
>
> plot(hcd,nodePar =nP, str(hcd,max.level=1))
>
> the output on the terminal was:
>
> --[dendrogram w/ 2 branches and 196 members at h = 2.70]
> |--[dendrogram w/ 2 branches and 34 members at h = 1.79] ..
> `--[dendrogram w/ 2 branches and 162 members at h = 1.95] ..
>
> which is great !
>
> but i cant get it done for the plot, the plot always shows all the
> branches...!
> does anybody know how to fix this one ?
>
> thx in advance
>
> -m.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson [t] +44 (0)20 7679 0522
ECRC [f] +44 (0)20 7679 0565
UCL Department of Geography
Pearson Building [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street
London, UK [w] http://www.ucl.ac.uk/~ucfagls/
WC1E 6BT [w] http://www.freshwaters.org.uk/
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%