回复 第1楼 的 阿派:感觉可以这么说,每根须都对应着一个数据,数据密了自然就粗了,一般和其他一些统计图形(比方说密度曲线之类的)结合着用,轴须图可以更好的帮助了解原始数据的信息(位置)。lz不妨试下这段代码(rug的帮助文档示例)
with(faithful, {
plot(density(eruptions, bw = 0.15))
rug(eruptions)
rug(jitter(eruptions, amount = 0.01), side = 3, col = "light blue")
})