我有一个示例脚本,它生成一个带有两个非零柱状图的直方图: library(ggplot2)
# Make a dummy data set, containing 11 values on the interval (1,2), and a
# single value on the interval (3,4)
dftest <- data.frame(dummy_data=c(seq(1.1,1.9,0.08), 3.3))
# Create a histogram with 5 bins, on the interval (0,5)
hst <- ggplot(dfte