Posts by William • 61 points
2 posts
-
3
votes2
answers692
viewsA: How to reverse the order of labels on a bar graph stacked with ggplot2?
I have already solved my problem and I will share my solution: ggplot(data=percent.prod, aes(x=Ano,y=Percent, fill=Tec, order = -as.numeric(Tec) )) + geom_bar(stat="identity", position = "stack",…
-
3
votes2
answers692
viewsQ: How to reverse the order of labels on a bar graph stacked with ggplot2?
I am trying to create a chart with the following code: ggplot(data=percent.prod, aes(x=Ano, weights=Percent)) + geom_bar(aes(fill=Tec), color="Black") + geom_text(aes(x=Ano, y=Percent, group=Tec,…