我想在道奇geom_bar中订购酒吧。你知道如何处理它吗? 我的代码:ggplot2,geom_bar,闪避,酒吧的顺序
ttt <- data.frame(typ=rep(c("main", "boks", "cuk"), 2),
klaster=rep(c("1", "2"), 3),
ile=c(5, 4, 6, 1, 8, 7))
ggplot()+
geom_bar(data=ttt, aes(x=klaster, y=ile, fill=typ),
stat="identity", color="black", position="dodge")
而且例如地块,以更好地理解这个问题:
玛塔您好,欢迎计算器! – maj