cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-11255%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%A6%82%E4%BD%95%E6%A0%B9%E6%93%9A%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%E5%B0%8D%20PCA%20%E4%B8%AD%E7%9A%84%E8%B3%87%E6%96%99%E9%BB%9E%E9%80%B2%E8%A1%8C%E8%91%97%E8%89%B2%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-11255%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E6%88%91%E9%80%B2%E8%A1%8C%E4%BA%86%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%A6%E5%B0%8D%E8%81%9A%E9%A1%9E%E9%80%B2%E8%A1%8C%E4%BA%86%E8%91%97%E8%89%B2%E3%80%82%20%E5%9C%A8%E5%BE%8C%E7%BA%8C%E7%9A%84%20PCA%20%E4%B8%AD%EF%BC%8C%E5%A6%82%E4%BD%95%E5%B0%87%E5%B1%A4%E6%AC%A1%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%AD%E7%9A%84%E8%91%97%E8%89%B2%E6%87%89%E7%94%A8%E5%88%B0%20PCA%20%E4%B8%AD%E7%9A%84%E8%B3%87%E6%96%99%E9%BB%9E%EF%BC%9F%20%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%AC%9D%E6%82%A8%E6%8A%BD%E5%87%BA%E6%99%82%E9%96%93%E3%80%82%20%E5%AE%89%E5%BE%B7%E7%83%88%E4%BA%9E%E6%96%AF%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-11256%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%A0%B9%E6%93%9A%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%E5%B0%8D%20PCA%20%E4%B8%AD%E7%9A%84%E8%B3%87%E6%96%99%E9%BB%9E%E9%80%B2%E8%A1%8C%E9%A1%8F%E8%89%B2%E8%91%97%E8%89%B2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-11256%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3E%E9%80%99%E4%BC%BC%E4%B9%8E%E8%87%AA%E5%8B%95%E7%99%BC%E7%94%9F%E5%9C%A8%E6%88%91%E8%BA%AB%E4%B8%8A%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E6%88%91%E9%80%B2%E8%A1%8C%E4%BA%86%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%EF%BC%8C%E4%B8%A6%E5%BE%9E%E7%B4%85%E8%89%B2%E5%B0%8F%E4%B8%89%E8%A7%92%E9%81%B8%E5%96%AE%E4%B8%AD%E9%81%B8%E6%93%87%E4%BA%86%E9%A1%8F%E8%89%B2%E8%81%9A%E9%A1%9E%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%228225_JMPScreenSnapz001.png%22%20style%3D%22width%3A%20846px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228225_JMPScreenSnapz001.png%22%20style%3D%22width%3A%20221px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228225_JMPScreenSnapz001.png%22%20style%3D%22width%3A%20221px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228225_JMPScreenSnapz001.png%22%20style%3D%22width%3A%20221px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228225_JMPScreenSnapz001.png%22%20style%3D%22width%3A%20221px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228225_JMPScreenSnapz001.png%22%20style%3D%22width%3A%20221px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228225_JMPScreenSnapz001.png%22%20style%3D%22width%3A%20221px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F1327iA47E1A0BDA7C6661%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%228225_JMPScreenSnapz001.png%22%20alt%3D%228225_JMPScreenSnapz001.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E7%84%B6%E5%BE%8C%EF%BC%8C%E7%95%B6%E6%88%91%E9%81%B8%E6%93%87%E2%80%9C%E5%88%86%E6%9E%90%E2%80%9D-%26gt%3B%E2%80%9C%E5%A4%9A%E5%85%83%E6%96%B9%E6%B3%95%E2%80%9D-%26gt%3B%E2%80%9C%E4%B8%BB%E6%88%90%E5%88%86%E2%80%9D%E6%99%82%EF%BC%8C%E5%8C%AF%E7%B8%BD%E5%9C%96%E5%92%8C%E9%9B%99%E5%9C%96%E5%B0%87%E6%8C%89%E8%81%9A%E9%A1%9E%E8%91%97%E8%89%B2%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%228226_JMPScreenSnapz002.png%22%20style%3D%22width%3A%202072px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228226_JMPScreenSnapz002.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228226_JMPScreenSnapz002.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228226_JMPScreenSnapz002.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228226_JMPScreenSnapz002.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228226_JMPScreenSnapz002.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%228226_JMPScreenSnapz002.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F1328iDDB709F1E19DC0CD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%228226_JMPScreenSnapz002.png%22%20alt%3D%228226_JMPScreenSnapz002.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E6%82%A8%E8%83%BD%E5%90%A6%E5%90%91%E6%88%91%E5%80%91%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E6%9C%89%E9%97%9C%E6%82%A8%E5%98%97%E8%A9%A6%E9%81%8E%E7%9A%84%E5%85%A7%E5%AE%B9%E4%BB%A5%E5%8F%8A%E5%93%AA%E4%BA%9B%E5%9C%96%E6%9C%AA%E6%8C%89%E6%82%A8%E6%83%B3%E8%A6%81%E7%9A%84%E9%A1%8F%E8%89%B2%E8%91%97%E8%89%B2%E7%9A%84%E8%A9%B3%E7%B4%B0%E8%B3%87%E8%A8%8A%EF%BC%9F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E-%E5%82%91%E5%A4%AB%3C%2FP%3E%3C%2FLINGO-BODY%3E%0A%20%0A%20%0A%20%20%3CLINGO-SUB%20id%3D%22lingo-sub-915121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%A0%B9%E6%93%9A%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%EF%BC%8CPCA%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%E8%B3%87%E6%96%99%E9%BB%9E%3C%2FLINGO-SUB%3E%0A%20%20%3CLINGO-BODY%20id%3D%22lingo-body-915121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%20%20%20%3CP%3E%E6%88%91%E6%83%B3%E6%A0%B9%E6%93%9A%E5%8E%9F%E5%A7%8B%E5%88%86%E7%B5%84%E5%B0%8D%20PCA%20%E5%BE%97%E5%88%86%E5%9C%96%E9%80%B2%E8%A1%8C%E8%91%97%E8%89%B2%E3%80%82%E4%BD%BF%E7%94%A8%E4%B8%8A%E8%BF%B0%E6%96%B9%E6%B3%95%EF%BC%8C%E5%8F%AF%E4%BB%A5%E6%A0%B9%E6%93%9A%E8%81%9A%E9%A1%9E%E7%B5%90%E6%9E%9C%EF%BC%88%E4%BE%8B%E5%A6%82%E5%B1%A4%E6%AC%A1%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%EF%BC%89%E5%B0%8D%E9%BB%9E%E9%80%B2%E8%A1%8C%E8%91%97%E8%89%B2%E3%80%82%3C%2FP%3E%20%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%3C%2FLINGO-BODY%3E%0A%20%0A%20%0A%20%20%3CLINGO-SUB%20id%3D%22lingo-sub-915251%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%A0%B9%E6%93%9A%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%EF%BC%8CPCA%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%E8%B3%87%E6%96%99%E9%BB%9E%3C%2FLINGO-SUB%3E%0A%20%20%3CLINGO-BODY%20id%3D%22lingo-body-915251%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%20%20%20%3CP%3E%E5%97%A8%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F83088%22%20target%3D%22_blank%22%3E%40rcmjh%3C%2FA%3E%20%EF%BC%8C%3C%2FP%3E%20%0A%20%20%20%3CBR%20%2F%3E%20%0A%20%20%20%3CP%3E%E4%BD%A0%E8%AA%AA%E7%9A%84%E3%80%8C%E5%8E%9F%E5%A7%8B%E5%9C%98%E9%AB%94%E3%80%8D%E6%98%AF%E4%BB%80%E9%BA%BC%E6%84%8F%E6%80%9D%EF%BC%9F%3C%2FP%3E%20%0A%20%20%20%3CBR%20%2F%3E%20%0A%20%20%20%3CP%3E%E8%AC%9D%E8%AC%9D%EF%BC%8C%3C%2FP%3E%20%0A%20%20%20%3CP%3E%E6%9C%AC%3C%2FP%3E%0A%20%20%3C%2FLINGO-BODY%3E%0A%20%0A%20%0A%20%20%3CLINGO-SUB%20id%3D%22lingo-sub-915948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%A0%B9%E6%93%9A%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%EF%BC%8CPCA%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%E8%B3%87%E6%96%99%E9%BB%9E%3C%2FLINGO-SUB%3E%0A%20%20%3CLINGO-BODY%20id%3D%22lingo-body-915948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%20%20%20%3CP%3E%E6%A0%B9%E6%93%9A%E6%80%A7%E5%88%A5%EF%BC%88%E4%BE%8B%E5%A6%82%E7%94%B7%E6%80%A7%2F%E5%A5%B3%E6%80%A7%EF%BC%89%E9%80%B2%E8%A1%8C%E9%A1%8F%E8%89%B2%E5%88%86%E9%A1%9E%E3%80%82%E7%84%B6%E5%BE%8C%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%AB%B8%E5%A6%82PCA%E6%95%A3%E9%BB%9E%E5%9C%96%E4%B9%8B%E9%A1%9E%E7%9A%84%E5%9C%96%E8%A1%A8%E4%B8%AD%E6%9F%A5%E7%9C%8B%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%E7%9B%B8%E6%87%89%E7%9A%84%E5%88%86%E7%B5%84%E3%80%82%3C%2FP%3E%20%0A%20%20%20%3CBR%20%2F%3E%0A%20%20%3C%2FLINGO-BODY%3E%0A%20%0A%20%0A%20%20%3CLINGO-SUB%20id%3D%22lingo-sub-916242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E6%A0%B9%E6%93%9A%E8%81%9A%E9%A1%9E%E5%88%86%E6%9E%90%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%EF%BC%8CPCA%E4%B8%AD%E7%9A%84%E9%A1%8F%E8%89%B2%E8%B3%87%E6%96%99%E9%BB%9E%3C%2FLINGO-SUB%3E%0A%20%20%3CLINGO-BODY%20id%3D%22lingo-body-916242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%20%20%20%3CP%3E%E5%A6%82%E6%9E%9C%E6%88%91%E7%90%86%E8%A7%A3%E6%AD%A3%E7%A2%BA%EF%BC%8C%E6%82%A8%E6%9C%89%E4%B8%80%E5%80%8B%E5%8C%85%E5%90%AB%E5%88%86%E9%A1%9E%E8%B3%87%E8%A8%8A%E7%9A%84%E5%88%97%EF%BC%8C%E9%82%A3%E9%BA%BC%E3%80%8C%E8%A1%8C%E3%80%8D%26gt%3B%E3%80%8C%E6%8C%89%E6%A8%99%E8%A8%98%E6%88%96%E5%88%97%E8%91%97%E8%89%B2%E3%80%8D%E5%B0%B1%E5%8F%AF%E4%BB%A5%E6%8C%89%E6%AD%A4%E6%96%B9%E5%BC%8F%E7%82%BA%E6%AF%8F%E4%B8%80%E8%A1%8C%E8%91%97%E8%89%B2%E3%80%82%E5%A6%82%E6%9E%9C%E6%82%A8%E5%B8%8C%E6%9C%9B%E5%9C%A8%E8%81%9A%E9%A1%9E%E9%A1%8F%E8%89%B2%E5%92%8C%E5%88%86%E9%A1%9E%E9%A1%8F%E8%89%B2%E4%B9%8B%E9%96%93%E5%88%87%E6%8F%9B%EF%BC%8C%E9%82%A3%E9%BA%BC%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F19.0%2F%23page%2Fjmp%2Fstore-information-in-row-state-columns.shtml%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%E5%BB%BA%E7%AB%8B%E4%B8%A6%E4%BD%BF%E7%94%A8%E3%80%8C%E8%A1%8C%E7%8B%80%E6%85%8B%E3%80%8D%E5%88%97%3C%2FA%3E%E6%9C%83%E5%BE%88%E6%9C%89%E5%B9%AB%E5%8A%A9%E3%80%82%3C%2FP%3E%0A%20%20%3C%2FLINGO-BODY%3E
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