ggplot2 order categorical stacked bars by proportions of y-axis
问题 I have a data frame with categorical x-axis called Category and the yaxis is the Abundance, colored by Sequence. For each Category I am trying to reorder the stacks by the Abundance, so that it is easily visualized which sequence has the highest proportion at the bottom, to the lowest proportion at the top. Currently, I can make a bar graph like this: s<-"Sequence Abundance Category CAGTG 0.8 A CAGTG 0.2 B CAGTG 0.6 C CAGTG 0.3 D CAGTG 0.1 E GGGAC 0.1 A GGGAC 0.1 B GGGAC 0.3 C GGGAC 0.6 D