Guest User

Untitled

a guest
Aug 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #PCA FUNCTION
  2. fancy.pca <- prcomp(DATA2C ,scale = TRUE)
  3.  
  4. #FANCY PRINTING OF PCA: GROUPING COLOR / SCHEME / TITLE
  5. g<-ggbiplot(fancy.pca, obs.scale = 1, var.scale = 1,
  6. groups = factor(DATA2C.class), ellipse = T, circle = T)
  7. g<- g+ scale_color_discrete(name = '')
  8. g<- g+ theme(legend.direction = 'horizontal', legend.position = 'top')+
  9. ggtitle("Jamaica Bay W-E Distribution PCA ")
  10.  
  11.  
  12. print(g)
Add Comment
Please, Sign In to add comment