为了绘制数据帧,我有以下内容.
c1 <- c(10, 20, 40)
c2 <- c(3, 5, 7)
c3 <- c(1, 1, 1)
df <- data.frame(c1, c2, c3)
ggplot(data=df, aes(x=c1+c2/2, y=c3)) +
geom_bar(stat="identity", width=c2) +
scale_fill_manual(values=c("#FF6666"))
我最后只有灰色的条:Grey bars for bar plot条
我想换一下吧台的 colored颜色 .
谢谢你的帮助.