Created
February 15, 2018 16:20
-
-
Save chasemc/3397a495c06d0d1666531e6632122fc5 to your computer and use it in GitHub Desktop.
old PCA GGPLOT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# e<-pcaCalculation() | |
# | |
# if(any(names(e) == 'd')){ | |
# | |
# p<-ggplot(e,aes(Dim.1,Dim.2,label=nam,col=factor(e$d)))+ | |
# geom_text()+ | |
# xlab("Dimension 1")+ | |
# ylab("Dimension 2")+ | |
# ggtitle("Zoomable PCA of Protein MALDI Spectra")+ | |
# theme(plot.title=element_text(size=15),legend.position="none") | |
# }else{ | |
# | |
# p<-ggplot(e,aes(Dim.1,Dim.2,label=nam))+ | |
# geom_text()+ | |
# xlab("Dimension 1")+ | |
# ylab("Dimension 2")+ | |
# ggtitle("Zoomable PCA of Protein MALDI Spectra")+ | |
# theme(plot.title=element_text(size=15),legend.position="none") | |
# | |
# | |
# } | |
# ggplotly(p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment