【发布时间】:2023-01-01 02:37:39
【问题描述】:
当前代码:
ggplot(compare, aes(x=specificity, y=false_positives)) +
geom_jitter(height=.02, color=specificity) +
scale_discrete_manual(values=c("#999999", "#E69F00", "#56B4E9", "violet"))
manual_scale(美学,价值观,休息,...)中的错误: 缺少参数“美学”,没有默认值
【问题讨论】:
-
如果我们有数据,我们可以检查它是否是 geom_jitter 中缺少的 aes 调用。
-
你想要地图颜色值
aesthetic,所以你必须这样告诉 ggplot:geom_jitter(aes(color = specifity), ...)。
标签: r ggplot2 geom-point scale-color-manual