用R画直方图,箱形图,条形图
1、用R画直方图,语言如下:
x<-c(2,4,5,7,9,33,23,22)
hist(x,main="histogram of x")

2、用R画箱形图,语言如下:
x<-c(2,4,5,7,9,33,23,22)
boxplot(x,main="distribution of x")

3、用R画条形图,语言如下:
x<-c(2,4,5,7,9,33,23,22)
barplot(x,main="distribution of x")

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:39
阅读量:107
阅读量:166
阅读量:173
阅读量:55