Hi there,
I have a df like this :
Sample propMirUp propMirDown
1 S104 0.6024 0.39763
2 S113 0.7922 0.20775
3 S115 1.0000 0.00000
4 S118 0.0000 1.00000
5 S119 0.0006 0.99940
...
I want to plot in a single barplot the proportion of propMirUp + propMirDown
#pivot
table_plots_long <- table_plots %>% pivot_longer(!Sample)
#plot
ggplot( table_plots_long, aes(x = NU1147, y = value, fill = name)) + geom_bar(position= "stack",stat = "identity")
However, I would like this plot ordered by the propMirUp value, and this results in a plot ordered by sample.
How could I overcome that?
Best
Simon