Guest User

Untitled

a guest
Jan 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. mytheme <- theme_bw() + theme(axis.title = element_text(size = rel(2)),
  2. strip.text = element_text(size = rel(2)),
  3. legend.position = "bottom",
  4. legend.key = element_blank(),
  5. text = element_text(size = 28),
  6. legend.text = element_text(size = 28),
  7. plot.margin = margin(20, 20, 20, 20),
  8. axis.text.x = element_text(hjust = 0.5, vjust = 0.5, size = 35),
  9. axis.text.y = element_text(hjust = 0.5, vjust = 0.5, size = 35),
  10. strip.background = element_rect(fill = 'gray96'))
  11.  
  12.  
  13. tiff("r.tiff", units="in", width=10, height=7, res=300)
  14. ggplot(data = Figure_1) +
  15. mytheme + scale_y_continuous(breaks = seq(0,2000, 500))+
  16. aes(x = bin, y = value, group = variable, color = variable) + scale_x_discrete(limits = c ("FFD","SFD", "GD", "TT")) +
  17. geom_errorbar(aes(ymin=value-ci, ymax=value+ci), width=.1) +
  18. geom_line(aes(group=variable, linetype = variable), size =2) + scale_linetype_manual(values=c("solid", "longdash", "dotdash", "dotted")) +
  19. theme(legend.title = element_blank()) +
  20. guides(col = guide_legend(reverse = FALSE, override.aes = list(size=6))) +
  21. xlab("") +
  22. ylab("Duration (ms)")
  23. dev.off()
Add Comment
Please, Sign In to add comment