Automatically resize bars in ggplot for uniformity across several graphs R
问题 I generate several bars graphs in a loop, and they all resize according to the output size (assume from plot/device size?) rather than according to the bar size. This means that plots with two bars have fat bars, and plots with, say, 6 bars, have thin bars; both outputs are the same size though. The code below represents my script with reproduceable data (I do many other aes/theme changes to mine). I'd like the output plot to resize (in the dimension of bar width) so that the bars are always