ggplot直方图中的BinSize

时间:2018-11-27 19:57:41

标签: r ggplot2 histogram

我正在尝试在ggplot中绘制P值的分布,但是我无法

确定如何选择正确的纸槽大小

当我在数据上使用bin大小为30时,我无法显示min和  最大值,而不是所有bin和binwidth。

min = 1.885e-15
max= 1.078e-05

我的代码是

x = read.table("11-20.txt", sep=" ", header=F)
library(ggplot2)

min(x$V10)
max(x$V10)

ggplot(x, aes(V10)) + 
 geom_histogram(color="black", fill="yellow") +
 xlab("minP of every test")

我如何在清晰的垃圾箱尺寸下显示最小值和最大值

enter image description here

0 个答案:

没有答案
相关问题