Biplot environmental variables on top of PCA
1
0
Entering edit mode
ecg1g15 ▴ 30
@ecg1g15-19970
Last seen 4.0 years ago

Hi,

I have used the function

plotPCA(vsd, intgroup = c("location", "station"))

to visualize a PCA with all my samples (genes expressed differently on different samples, under different environmental conditions).

I would like to plot the environmental variables (conditions of the samples) with arrow on top to see the effect of the environmental variables. similar to what they do in "facto extra" -> fvizpcabiplot. Example Biplots Or is there a way to merge the PCA I have created adding the environmental variables on top?

deseq2 biplot plotpca • 1.3k views
ADD COMMENT
0
Entering edit mode

I have also read about the Redundancy Analysis used to correlate species matrix against environmental descriptors, is this something that would be recommended doing? I am confused as the initial df has samples in rows and genes in columns, and another df with the environmental variables.

ADD REPLY
0
Entering edit mode

I have also read about the Redundancy Analysis used to correlate species matrix against environmental descriptors, is this something that would be recommended doing? I am confused as the initial df has samples in rows and genes in columns, and another df with the environmental variables.

ADD REPLY
0
Entering edit mode
@mikelove
Last seen 47 minutes ago
United States

See the help page for plotPCA: the easiest approach will be to compute the PCA yourself as directed in the man page.

ADD COMMENT

Login before adding your answer.

Traffic: 845 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6