title: Decrease overal legend size (elements and text)
body: <p>I'm plotting some data with R ggplot2. I have two variables that I'm plotting as a scatter plot, with two extra dimensions plotted as colour and shape. However, the plot doesn't work well with the legend outside (to small on the x-axis).</p>
  
  <p>I moved the legend inside, but now the legend is to big! Is there a way to make it smaller that doesn't involve decrease the size of each individual component separately (legend title, legend labels, legend symbols)?</p>
  
  <pre><code>library(ggplot2)
  p1  = ggplot(allPars, aes(x = log10(growthRate), y = log10(k), col = Background, shape = Timepoint))+
      geom_point(size = 2)+
      theme(legend.position = c(0.5,0.5))+
      xlab("Log10 Growth Rate")+
      ylab("Log10 K")
  fig1 = plot_grid(p1, labels = "AUTO")
  save_plot(filename = "~/projects/phd/Chapter4/fig4.pdf", plot = fig1, scale = 1)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/iZuQT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iZuQT.png" alt="enter image description here"></a></p>