由于我需要在函数中使用 ggplot2,因此需要非标准评估模式。因此,aes_string
使用 with "price"
。但是,则..count..
不再定义
ggplot(diamonds, aes_string(x="price", ..count../sum(..count..))) + geom_histogram(binwidth = 500)
由于我需要在函数中使用 ggplot2,因此需要非标准评估模式。因此,aes_string
使用 with "price"
。但是,则..count..
不再定义
ggplot(diamonds, aes_string(x="price", ..count../sum(..count..))) + geom_histogram(binwidth = 500)