我试着用
ggplot2但是,我收到了这个错误:
Error in ggproto(NULL, super, call = match.call(), aesthetics = aesthetics, :
argument "values" is missing, with no default这里是绘图的数据
IND1 <- c(3.422 -0.11708, -0.58419, NA, -2.40179, 0.26907, -2.30089, NA, NA)
Dep <- c("D1","D2","D3","D4","D5","D6","D7","D8")
dd <- data.frame(Dep, IND1)
library(ggplot2)
ggplot(dd, aes(x = Dep, y = IND1, fill = (IND1 > 0))) +
geom_col() +
scale_fill_manual(value = c("purple", "blue")) +
coord_flip()
I think it has to do with NA I have. Is there anything I can?发布于 2018-03-31 14:39:07
你犯了个错误:
替换
scale_fill_manual(value = c("purple", "blue"))使用
scale_fill_manual(values = c("purple", "blue"))https://stackoverflow.com/questions/49588774
复制相似问题