Posts by Marcelo Lima • 11 points
1 post
- 
		1 votes2 answers213 viewsA: Reorder bars in ggplot2 according to one of the fill variables (Fill)Why not use fct_reorder2? With this, you can sort the two variables preferably. df %>% mutate(equipamento = fct_reorder2(equipamento,situacao, perc)) %>% ggplot(aes(x=equipamento ,y=perc,…