Is there a way to plot original set of data onto biplot?

조회 수: 5 (최근 30일)
Michelle
Michelle 2014년 8월 7일
댓글: dpb 2014년 8월 11일
I want to plot all of my original data as a scatter plot onto the biplot created by PCA.

채택된 답변

Peter Perkins
Peter Perkins 2014년 8월 11일
Michelle, the whole point of PCA is to create a new coordinate system. Plotting the original data in that coordinate system doesn't make sense. If you've done PCA, you must have the scores for your original data -- the scores are the original data transformed into the new coordinate system. Use BIPLOT to plot those - there's an optional parameter to do that.
Hope this helps.
  댓글 수: 2
Michelle
Michelle 2014년 8월 11일
Thank you!
dpb
dpb 2014년 8월 11일
...the whole point of PCA is to create a new coordinate system. ...
Good point, Peter... :)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

dpb
dpb 2014년 8월 7일
편집: dpb 2014년 8월 8일
biplot(...
hold on
scatter(gca,x,y);
should get you started.
  댓글 수: 2
Michelle
Michelle 2014년 8월 11일
Thank you!
dpb
dpb 2014년 8월 11일
Other than Peter's obvious, of course... :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by