learning R with swirl-Base Graphics

   R最有利的地方,在于它很容易可以制图。本节我们将学习R基本的制图法。

    There is a school of thought that this approach is backwards, that we should teach ggplot2 first. See http://varianceexplained.org/r/teach_ggplot2_to_beginners/ for an outline of this view.

learning R with swirl-Base Graphics

learning R with swirl-Base Graphics

learning R with swirl-Base Graphics

learning R with swirl-Base Graphics

learning R with swirl-Base Graphics

learning R with swirl-Base Graphicslearning R with swirl-Base Graphics

learning R with swirl-Base Graphics

learning R with swirl-Base Graphics

因为类似“col”“pch”这样的参数不是能直接想到的,因此大多数人都会使用包,例如ggplot2来创建他们自己的图表。

learning R with swirl-Base Graphics

learning R with swirl-Base Graphics