摘要: The figure 1a does not draw any lines, while the figure 1b works well.The key concept is “group” in aes.The rule is simple: So, by specifying group=g 阅读全文
posted @ 2016-04-10 18:48 emanlee 阅读(5616) 评论(0) 推荐(0)
摘要: x<-data.frame(apple=c(1,4,2,3),pear=c(4,8,5,2)) x # apple pear # 1 1 4 # 2 4 8 # 3 2 5 # 4 3 2 x$banana<-c(9,5,6,2) x # apple pear banana # 1 1 4 9 # 2 ... 阅读全文
posted @ 2016-04-10 18:46 emanlee 阅读(17301) 评论(3) 推荐(1)
摘要: ggplot2中的legend包括四个部分: legend.tittle, legend.text, legend.key, legend.backgroud。针对每一部分有四种处理方式:element_text()绘制标签和标题,可控制字体的family, face, colour, size, 阅读全文
posted @ 2016-04-10 18:44 emanlee 阅读(36496) 评论(0) 推荐(1)
摘要: library(ggplot2) REF: http://www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_%28ggplot2%29/ http://www.rdocumentation.org/packages/bear/functi 阅读全文
posted @ 2016-04-10 09:50 emanlee 阅读(1571) 评论(0) 推荐(0)