Hello,
I am trying to order (highest to lowest value) bars of only one group in a grouped bar plot. I am not interested in order of of the second group. But I need to order bars of group 1. Attached codes and figure is the example I am trying to work this out. In this example I want to order bars for x-axis label "Clone" only. My codes are;
ggplot(f402, aes(x=factor(Propagule), y=BV_Sep, fill=reorder(Genotype, BV_Sep))) +
theme_bw() +
geom_bar(aes(fill=Genotype), stat = "identity", position = "dodge")
My sample data are;
Genotype Clone Family Propagule BV_Sep
Genotype1 540209 Fam402 Seedling 13.43000
Genotype2 540219 Fam402 Seedling 13.87870
Genotype3 540238 Fam402 Seedling 12.60450
Genotype2 540219 Fam402 Clone 29.07208
Genotype1 540209 Fam402 Clone 28.99002
Genotype3 540238 Fam402 Clone 28.31975
Any suggestions would be appreciated.
Thank you,
Nasir