I have the following example dataframe:
`Trait Class Value
Trait Class Value
1 A 3
1 B 4
2 A 7
2 B 8
I want to create a barplot with ggplot2 where the values for each class are mirrored on the x axis.
When I try to plot it like this,
ggplot(cali_gca, aes(x=Trait, y=Value, fill=Class)) +
geom_bar(stat="identity", position="identity")
I don't get any mirroring on the x axis (see Image with my actual data which is completely the same structured as the toy dataset).
Does anybody has an idea why?
Thank you so much in advance!
Here is the plot drawn in paint I would like to have: Graphic I want