How to Remove Space between Legend at Bottom and x-axis in ggplot2

Reduce Space between legend and x-axis: Use legend.margin()

In ggplot2, we can adjust the position of legend easily. By default, ggplot2 places the legend on the right side of a plot. Using theme() function, we can move the legend to the bottom of or top of the plot. Sometime, you might like to customize the space between legend at bottom and x-axis. In… Continue reading How to Remove Space between Legend at Bottom and x-axis in ggplot2

Exit mobile version