要修复它,请将fill 放回到aes 中并使用scale_fill_manual() 定义自定义调色板: ggplot(mtcars) + geom_bar(aes(factor(hp), fill=factor(hp))) + ...
確定! 回上一頁