这是我在R中做的直方图,请看这里:
这是我用来获取它的代码:
par(mfrow = c(3, 1))
hist(outcome[, 11], main = "Heart Attack", xlim = c(10,20), xlab = "30-day Death Rate")
hist(outcome[, 17], main = "Heart failure", xlim = c(10, 20), xlab = "30-day Death Rate")
hist(outcome[, 23], main = "Pneumonia", xlim = c(10,20), xlab = "30-day Death Rate")
那么,如何修改我的代码以获得下图,请参见此处:
我需要在直方图上显示全部数据范围,同时在 10-20 之间有一个有限的 x 轴,中间只有 15 个