Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はRで何かに気づきました。たとえばpc、PCAをデータ行列に適用した結果であり pc$x、私のサンプルの主成分行列です。
pc
pc$x
を試すとplot(pc$x)、最初の主成分 ( pc1) と 2 番目の主成分 ( ) のみがプロットされますpc2が、実際には 2 つ以上の主成分があります。それらをすべて表示するにはどうすればよいですか?
plot(pc$x)
pc1
pc2
1 つのプロット内のすべての組み合わせ:
pairs(pc$x)
特定の組み合わせを選択するには、次を使用します。
plot(pc$x[, c(1,3)]) # e.g. pc1 and pc3