Data visualization with SAS programming

Graphing data from a cluster analysis

Reply
Occasional Contributor
Posts: 18

Graphing data from a cluster analysis

Hi everyone,

I am helping a friend conduct a cluster analysis. I'm new to this analysis and would like to know if there is any other way of displaying results other than a tree diagram. I performed the analysis on 194 cases and the resulting diagram was not something I could present to others or submit for publication. Specifically, the fontsize was tiny because it was squeezed to fit onto a single page. However, even if I print the tree diagram on two pages, it still does not look very professional. I am interested in learning more about how such data can be displayed. Snippets of code and a graph would really help me out a lot.

best,

Cristian

SAS Super FREQ
Posts: 1,136

Graphing data from a cluster analysis

If you include your code with data, it would help us understand this use case.  Also, please tell us which release of SAS you are using.

Occasional Contributor
Posts: 18

Graphing data from a cluster analysis

Is there are way to attach a SAS data set?

Here is the SAS code.

ods graphics on;
proc cluster data=HCA_std method=WARD TRIM=10 NONORM k=10 ccc pseudo print=30 outtree=Tree ;
   var can:;
   id NationYR;
   copy FH Van Democ Elecsd Polity;
   format NationYR $12.;
run;
ods graphics off;

goptions vsize=10in hsize=10in htext=.5pct htitle=2pct ftext='Garamond' ;
title "Cluster Analysis of Country/Election Years";
axis1 order=(0 to 1 by 0.1) label = (height=2pct) ;
proc tree data=Tree out=Clusters(drop=CLUSNAME canSmiley Happy nclusters=2 similar
          haxis=axis1 VPAGES=2 horizontal  ;
where _FREQ_ >-1;
height _rsq_;
copy FH Van Democ Elecsd Polity;
id NationYR;
run;

Ask a Question
Discussion stats
  • 2 replies
  • 185 views
  • 0 likes
  • 2 in conversation