Project all points in PCA plot to the x-axis

Hi,

I have done PCA on my data. It has a lot of features, so I want to project all points in the PCA plot to PC1 to see the separation between all points.

I am not entirely sure on how to do it. I have been trying to use the ggplot function, but it seems like it requires at least x and y axis to be able to work.

Any recommendations on how to perform this will be much appreciated.

Thank you.

What's your output like? Could you do something like this?

Understanding PCA using Stack Overflow data | Julia Silge

Maybe you could provide a reproducible example of your output?

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.