如何在R中检查直方图是正确的吗?
我有一个概率值的数据框架D,并尝试绘制其直方图。直方图的风浪管适用于这些概率值和-log10(d)。但是,直方图-LOG10(d)看起来错误,因为它在x轴上停止3.5左右。为什么这样?这是D的直方图
。 png“ alt =”输入图像说明在此处”>
,如果为-log10(d)
I have a data frame D of probability values and try to plot the histogram of it. The histogram bellows are for those probability values and for -log10(D). However, the histogram -log10(D) looks wrong because it stops in around 3.5 in x axes. Why is this the case? This is the histogram for D.
and this if for -log10(D)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的向量d可以近似:
我们可以看到直方图看起来相似,x轴范围在0到1:
和
log10(d)的直方图-log10(d)
也很相似:X轴停止3.5的原因仅仅是因为您在D中没有小于
10^( - 3.5)
的值, 在我的示例中为0.0003162278,我得到:
这意味着
-log10(d)的最大值
小于3.5:Your vector D can be approximated with:
And we can see the histogram looks similar, with an x axis range between 0 and 1:
and the histogram of
-log10(D)
is also similar:The reason why the x axis stops at 3.5 is simply because you have no values in D that are smaller than
10^(-3.5)
, which is 0.0003162278In my example, I get:
which means that the maximum value of
-log10(D)
is less than 3.5: