不涉及到lattice, ggplot2 和ggvis.
| 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.
使用plot()函数 对于?plot中的说明已经很详细了
对于外观改变方面
如 :
plot(x, col = 2) 能将点变为红色
plot(x, pch = 2)将形状改变为三角形
plot(x, xlim = c(10, 15))限制x轴为10到15
具体可以用?point查看说明
但是对于大多数已经使用ggpolt2进行更高级更美观的绘图了
箱图 :反应分布范围的图,具有分为距这些数据
?boxplot
与大多数一样,使用 “formula”argument
通常用“~”表示变量之间的关系:boxplot(formula = mpg ~ cyl, data = mtcars)
If you want to explore
| other elements of base graphics, then this web page
| (http://www.ling.upenn.edu/~joseff/rstudy/week4.html) provides a useful
| overview.