I would like to create a plot like the one below with each column adjusted to be the same width (instead of the facets being the same width. I have tried various methods but am unable to keep the columns the same when I use coord_flip() in the code.
Data set looks something like:
taxa LDA Analysis
A -3.7 One
B -3.5 One
C -3.8 Two
A -3.2 Three
C -3.4 Three
E -3.8 Three
F -3.7 Three
This is the code I have used to create the graph above so far.
plot2a <- ggplot(cca, aes(taxa,LDA, fill=Analysis)) + theme_classic()+ labs(y="score",x="Names") + theme (legend.position = 'none') + coord_flip(ylim=(c(-5,5))) + geom_bar(stat = "identity")+ scale_y_continuous(breaks = c(-5,-4,-3,-2,-1,0,1,2,3,4,5)) + facet_wrap(~Analysis, scales = "free",ncol = 1)
plot2a
Any help much appreciated.