Overlaying two PCA plots
Issue #194
resolved
Hello, I'm trying to overlay two PCA plots on one another. I have tried using the points system within R and can't seem to get it to work. Basically, I'm trying to show the difference in PC1 vs PC2 for an all CA atom protein and its active site with two different ligands bound. Is there a method of doing this?
Thank you!
Comments (3)
-
-
-
- changed status to resolved
re-open if needed
- Log in to comment
Use
plot
in combination withpoints()
(exemplified here with the transducin data set):(here I plot the same twice, so replace the
pc.xray
in the call topoints
with whatever your have).alternatively
plot
in combination withpar(new=TRUE)
(set
ylim
andxlim
to make sure both plots are on the same scale. Useaxes=FALSE
to avoid that axes are plotted twice).A better option would probably be to make two adjacent plots. e.g.