cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • See how to interactively organize and restructure data for analysis. Register for May 29 webinar, 2pm US ET.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

How do I colour data points in PCA according to colours in cluster analysis?

Hi, I performed a cluster analysis and coloured the clusters. In a subsequent PCA, how can I apply the colouring from the hierarchical cluster analysis to the data points in the PCA? Thanks so much for your time. Andreas

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: Colour data points in PCA according to colours in cluster analysis

That seems to be happening for me automatically.

I did a cluster analysis and chose Color Clusters from the red triangle menu.

8225_JMPScreenSnapz001.png

Then when I choose Analyze -> Multivariate Methods -> Principal Components, the Summary Plots and Biplot are colored by the clusters.

8226_JMPScreenSnapz002.png

Can you give us some more details on what you've tried and what plots aren't colored as you'd like?

-Jeff

-Jeff

View solution in original post

5 REPLIES 5
Jeff_Perkinson
Community Manager Community Manager

Re: Colour data points in PCA according to colours in cluster analysis

That seems to be happening for me automatically.

I did a cluster analysis and chose Color Clusters from the red triangle menu.

8225_JMPScreenSnapz001.png

Then when I choose Analyze -> Multivariate Methods -> Principal Components, the Summary Plots and Biplot are colored by the clusters.

8226_JMPScreenSnapz002.png

Can you give us some more details on what you've tried and what plots aren't colored as you'd like?

-Jeff

-Jeff
rcmjh
Level I

Re: Colour data points in PCA according to colours in cluster analysis

I want to colour a score plot in PCA according to the original groups. Using the method above colours the points according to the clustering in e.g hierarchial analysis

 

Re: Colour data points in PCA according to colours in cluster analysis

Hi @rcmjh ,

 

What do you mean by original groups?

 

Thanks,

Ben

“All models are wrong, but some are useful”
rcmjh
Level I

Re: Colour data points in PCA according to colours in cluster analysis

Colour according to classification such as male/female. Then can see if there is any grouping accordingly in plots such as PCA scatter plot.

 

Re: Colour data points in PCA according to colours in cluster analysis

If I'm understanding correctly and you have a column with the classification, then Rows > Color by Mark or Column can color each row this way. If you'd like to switch back and forth between the cluster colors and classification colors, then creating and using a Row State column would be helpful.

Recommended Articles