我通过R图形食谱工作我的方式,跑进这套代码:“..”在ggplot的“fill = .. density ..”中指的是什么?
library(gcookbook)
library(ggplot2)
p <- ggplot(faithful, aes(x = eruptions, y = waiting)) +
geom_point() +
stat_density2d(aes(alpha=..density.., fill=..density..), geom="tile", contour=FALSE)
它运行很好,但我不明白的..
之前和之后density
什么是指。我似乎也无法在书中找到它。
'..density..','..count..'和其他引用的变量是由ggtplo2使用stat_xxx函数实时创建的。 http://stackoverflow.com/questions/14570293/special-variables-in-ggplot-count-density-etc – baptiste