【发布时间】:2018-09-01 05:52:33
【问题描述】:
【问题讨论】:
-
好的,非常感谢!下次添加问题之前我会更加小心,以便更好地搜索。
标签: r graphics visualization
【问题讨论】:
标签: r graphics visualization
将直方图保存为变量,然后将 log10 应用于 bin 计数。将 -Inf 值设置为 0,然后绘制新计数。
# make histogram of the data
h <- hist(data)
# log10 the counts per histogram bin
h$counts <- log10(h$counts)
# set the -Inf values to 0
h$counts[!is.finite(h$counts)] <- 0
# plot the log10 counts
plot(h)
【讨论】: