如何使用Excel创建Box plot

  1. 首先在Excel中输入你想话Box plot的数据;
-WestEast
1471
2233
3256
4283
51912
52410
6389
72280

2.然后计算需要的值:

    
Min191
Q122.753
Median24.57.5
Q330.510.5
Max4780
   
box1-hidden22.753Q1
box2-lower1.754.5Median-Q1
box3-upper63Q3-Median
whisker top16.569.5Max-Q3
whisker bottom3.752Q1-Min

3. 选择B2:C2和A19:C21,然后Insert–>Column(In Charts group)–>Stacked Column,插入一个stacked的chart,如果x轴和y轴不对的话,可以通过Design–>Switch Row/Column交换xy轴;
4. 选中stacked column中的最下面的一个series,将它的背景色去掉,也可以将gridline去掉;
5. 关键的一步是用ErrorBar生成Box plot的upper whisker和lower whisker;选择最下面的一个series,在Layout–>Analysis–>Error Bar–>More Error Bars Options–>Custom–>选择whiker bottom一行的两个数据。就可以了。

最后的结果
http://blog.contextures.com/archives/2013/06/11/create-a-simple-box-plot-in-excel/
http://peltiertech.com/excel-box-and-whisker-diagrams-box-plots/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值