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).
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)?
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)

