ggplot2非标准评估

时间:2017-10-19 19:40:38

标签: r ggplot2 dplyr non-standard-evaluation

由于我需要在函数中使用ggplot2,因此需要非标准评估模式。因此,使用aes_string "price"。但是,..count..不再定义

ggplot(diamonds, aes_string(x="price", ..count../sum(..count..))) + geom_histogram(binwidth = 500)

0 个答案:

没有答案