I want to move my ggplot2 legend to the corner, but not inside the plot itself. So it should be in the margin still, but not in the center. The only options I've found are for either selecting "top," "right," etc., or using a custom coordinate within the plot itself.
So for example, take this image:
and imagine sliding the legend straight down from where it currently is to the bottom-right corner.
I tried setting the legend position to c(12, 2)
for example, but it just disappears.
Setting it to "right" is what the current image is, but I need the legend to slide down to the "bottom-right."