📜  错误美学必须是长度 1 或与数据相同 (3) 填充 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:48.838000             🧑  作者: Mango

代码示例1
library("ggplot2")

ggplot(data = warpbreaks, aes(x = wool, y = breaks)) +
  geom_boxplot(
    notch = T,
    fill = c("blue", "red", "green3", "hotpink2"),
    outlier.color = NULL
  ) +
  theme(legend.position = "none") +
  theme_classic()
#> Error: Aesthetics must be either length 1 or the same as the data (2): fill