Kammy
根据Tutorial做练习,得到
> data<-c(2,11,20,9,72,5,4,65.2)
> stem(data)
The decimal point is 1 digit(s) to the right of the |
0 | 24591
2 | 0
4 |
6 | 52
这些数字换算出来的意思是:
2.4591
20
40
65.2
他们是什么意思?
Tutorial里面显示了:
N=
Median=
Quartiles=
的.
但是我的结果里没有.(R-2.5.0 En Ed)
怎么才能显示Quartiles?
yihui
没错,就是茎叶图。
那行说明已经说得很清楚了:The decimal point is 1 digit(s) to the right of the |,小数点在|右边一位的地方,意思也就是|左边的数字是十位数,右边的是个位数。茎叶图一般是对原始数据分段,然后展示每一段中数据的个数(频数),与直方图的思想类似,但比直方图粗糙。
看样子你没有理解图的意思,0 | 24591不是表示2.4591,而是表示从0~20之间有5个数,大约是2、4、5、9、11,同样,2 | 0表示20~40之间有1个数,大约是20,4 | 表示40~60之间没有数值,6 | 52表示60以上的数据有2个,大约是65和72。
多做几个例子就理解了,我打字可能打半天也说不清楚。
> stem(1:9)
The decimal point is at the |
0 | 0
2 | 00
4 | 00
6 | 00
8 | 00
> stem(c(2,11,20,9,72,5,4,65.2,12))
The decimal point is 1 digit(s) to the right of the |
0 | 245912
2 | 0
4 |
6 | 52
> stem(c(2,11,20,9,72,5,4,65.2,12,10))
The decimal point is 1 digit(s) to the right of the |
0 | 2459012
2 | 0
4 |
6 | 52
> stem(c(2,11,20,9,72,5,4,65.2,12.11,10))
The decimal point is 1 digit(s) to the right of the |
0 | 2459012
2 | 0
4 |
6 | 52
> stem(c(2,11,20,9,72,5,4,65.23,12.11,10))
The decimal point is 1 digit(s) to the right of the |
0 | 2459012
2 | 0
4 |
6 | 52