Guest User

Untitled

a guest
Mar 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. library(ggplot2)
  2.  
  3. f <-subset(global_data,coor==0)
  4. plot1<-ggplot(f, aes(time)) +
  5. geom_boxplot(coef =1.5, aes(x=time, y=en, fill=cont), outlier.size = NULL) +
  6. scale_y_continuous(limits = c(0, 3)) +
  7. guides(fill=FALSE) +
  8. theme(axis.text=element_text(size=14),
  9. axis.title=element_text(size=14,face="bold"))
  10. d <-subset(global_data,coor==0.5)
  11. plot2<-ggplot(d, aes(time)) +
  12. geom_boxplot(coef =1.5, aes(x=time, y=en, fill=cont), outlier.size = NULL) +
  13. scale_y_continuous(limits = c(0, 3)) +
  14. guides(fill=FALSE) +
  15. theme(axis.text=element_text(size=14),
  16. axis.title=element_text(size=14,face="bold"))
  17.  
  18. grid.arrange(plot1,plot2,ncol=2)
Add Comment
Please, Sign In to add comment