I have data with about 30 categories for the X axis in two groups for faceting. I will show this with some random data:
dataf <- data.frame(x=c(1:30), A=r
Try using facet_wrap instead:
facet_wrap
ggplot(datam, aes(factor(x), value)) + geom_bar(stat="identity") + facet_wrap(~variable,nrow = 2,scales = "free")