Hello,

I did a cluster analysis of categorical variables and want to plot the result in a summary graph. There are three groups of variables that contain 'dummy variables'. I'm able to plot one group of these stacked 'dummy variables' with subgraphs by cluster membership. But I want to add two more groups of variables next to the bar.

Thats the first group of variables:

Code:

Is it possible to add a fourth variable next to the percentage-bars that displays a mean on a second scale (see whole sketch)?

I did an extensive google search and read the state documentation, but I couldn't figure out how to do it.

If you don't know a solution, perhaps you have a better idea how to visualize clustered categorical data by groups.

Thanks in advance, Lars

I did a cluster analysis of categorical variables and want to plot the result in a summary graph. There are three groups of variables that contain 'dummy variables'. I'm able to plot one group of these stacked 'dummy variables' with subgraphs by cluster membership. But I want to add two more groups of variables next to the bar.

Thats the first group of variables:

Code:

How do I add x_group2 and x_group3 that they are displayed each stacked side-by-side by cluster membership (see sketch, ignoring the 'count' bar)?graph bar a_group1 b_group1 c_group1 d_group1 e_group1 f_group1 x_ group1,

by(, legend(off)) xsize(6) ysize(8) aspectratio(1.2)

by(clus_8_ward_gower) stack percent

Is it possible to add a fourth variable next to the percentage-bars that displays a mean on a second scale (see whole sketch)?

I did an extensive google search and read the state documentation, but I couldn't figure out how to do it.

If you don't know a solution, perhaps you have a better idea how to visualize clustered categorical data by groups.

Thanks in advance, Lars

## Comment