0. Preparation and Introduction ggplot2是R中新颖的数据可视化包,这得益于Leland Wilkinson在他的著作<The Grammar of Graphics>中提出了一套图形语法,把图形元素抽象成可以自由组合的成分,Hadley Wickham把这套想法在R中实现. 1. How to use qplot 函数qplot()是ggplot2中十分常用的函数,使用它可以绘制丰富多彩的图形,并且通常只需要一行代码可以搞定.在这里,我们通过R内置的钻石数…
Alpha-ma 2016/10/7 1 Introduction of GGplot2 ggplot2 is an R package for producing statistical, or data, graphics, and it has a deep underlying grammar. This grammar, based on the Grammar of Graphics creadted by Wilkinson. In the grammar of graphics,…