On Jun 10, 2009, at 1:26 PM, Fireblast wrote:
>
> Hi,
>
> I am a beginner with R. I would like to get a loading plot of PC 3
> vs PC 1.
>
> For PC 1 vs PC 2 I use
>
> library(pls)
> loadingplot(pca.result, comps = 1:2, scatter = TRUE,
labels="names")
>
> if I try
>
> loadingplot(pca.result, comps = 1:3, scatter = TRUE,
labels="names")
>
> I get the loading plots of PC 1 vs PC 2, PC 1 vs PC 3 and PC 2 vs PC
> 3. What
> do I have to do to get just a single loading plot of PC 3 vs PC 1.
It seems blindingly obvious. Manual says comp is a vector. Make one:
...., comps=c(3,1), ...
David Winsemius, MD
Heritage Laboratories
West Hartford, CT