【发布时间】:2017-06-21 19:03:15
【问题描述】:
我正在尝试使用 ggplot 组合两个分布式图。但不成功。
【问题讨论】:
-
试试
facet_wrap( ~ variable, scales = "free_x")。还提供一个可重现的例子link -
ggplot(X,aes(x=rating, fill = cond)) + geom_density(alpha = .3)。尝试此操作时出现错误,例如 Error: Mapping should be created with aes() 或 aes_()