Gnuplot 箱线图,控制胡须的延伸达到目标百分位数
Gnuplot boxplots, control the extend of whiskers up to a target percentile
我正在使用 gnuplot boxplots 绘制一些统计数据。我想更改我的箱线图的胡须扩展,以扩展到指定的百分位数,比如第 99 个。根据文档,这似乎是可能的。
Gnuplot 文档 (on page 45) 指出:
A box is drawn around the region between the first and third
quartiles, with a horizontal line at the median value. Whiskers extend
from the box to user-specified limits.
但是,并没有说明如何去做。文档提到了晶须的宽度,但没有提到它们的延伸。
我的两个问题是:
Q1:如何控制晶须的延伸
Q2:我需要自己计算我的目标百分位数(例如,第 99 个)然后设置它还是 gnuplot 可以做到?
谢谢!
如果我正确理解set style boxplot
的文档,你应该使用
set style boxplot fraction 0.99
延伸胡须 "symmetrically from the median value until it encompasses the requested fration of the data set. Here gain each whisker is constrained to end at a point in the data set"(来自文档)。
我正在使用 gnuplot boxplots 绘制一些统计数据。我想更改我的箱线图的胡须扩展,以扩展到指定的百分位数,比如第 99 个。根据文档,这似乎是可能的。
Gnuplot 文档 (on page 45) 指出:
A box is drawn around the region between the first and third quartiles, with a horizontal line at the median value. Whiskers extend from the box to user-specified limits.
但是,并没有说明如何去做。文档提到了晶须的宽度,但没有提到它们的延伸。
我的两个问题是: Q1:如何控制晶须的延伸 Q2:我需要自己计算我的目标百分位数(例如,第 99 个)然后设置它还是 gnuplot 可以做到?
谢谢!
如果我正确理解set style boxplot
的文档,你应该使用
set style boxplot fraction 0.99
延伸胡须 "symmetrically from the median value until it encompasses the requested fration of the data set. Here gain each whisker is constrained to end at a point in the data set"(来自文档)。