GGplot different lengths

Hi can anyone explain why my plots are different lengths? the have the same amount of entries in them and come from the same data frame.

Thanks in advance

This happens because ggplot is automatically resizing the plot area to accommodate the legend. The overall width of the plot objects is the same, but the legends are different widths, so the areas of the plots within those windows get resized and end up differing.

For some possible solutions, check out this answer on Stack Overflow.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.