This is my code:
ggplot(tmp, aes(x=tmp$V2, y=-log10(tmp$V3), fill=tmp$V1)) +
geom_bar(stat="identity") +
coord_flip()
Now I would like to create the same plot as above but where the values within each "groups" are sorted. Something that will look like this.