一,graphie
1. plot:( xyplot )画图基础类型,可绘制多种图
x = c(0:9)
y = c(1:10)
plot(x,y)
2,matplot(x,y) 可绘制多种图,同时展示多列数据
x = c(0:9)
y = (1:10)
3,barplot(x,y)[ barchart ]柱状图
4,dotchart (detplot) 克里夫蓝点图
5,hist【histogram】 直方图
6,pie() 饼
7,density 【denditeplot】核密度图
8, smoothScatter(x,y) 平滑散点图
9,sunflowerplot(x,y) 太阳花图
x=c(77,62,77,71,70,68,74,59,89,85,79,79,72,90,78,72,93,77,74,77,71,68,98,96,83,67,71,78,87,66,56,65,43,32,54,78) [1] 77 62 77 71 70 68 74 59 89 85 79 79 72 90 78 72 93 77 74 77 71 68 98 96 [25] 83 67 71 78 87 66 56 65 43 32 54 78 par(mfrow=c(2,2)) # 将接下来的两幅图按照 2X2的布局绘制再一个输出窗口内; hist(x,breaks=6,freq=TRUE,main='频数直方图') hist(x,breaks=6,freq=FALSE,main='频率密度直方图') plot(ecdf(x),verticals=TRUE,do.p=FALSE,main='经验分布函数图') qqnorm(x,main='正态qq图');qqline(x) dev.new() # 新建一个图形窗口 boxplot(x,main='箱线图')