Skip to content

Instantly share code, notes, and snippets.

@chasemc
Created February 15, 2018 16:20
Show Gist options
  • Save chasemc/3397a495c06d0d1666531e6632122fc5 to your computer and use it in GitHub Desktop.
Save chasemc/3397a495c06d0d1666531e6632122fc5 to your computer and use it in GitHub Desktop.
old PCA GGPLOT
# 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