I,m trying to get these figures together in one figure, but I would like to have a shared x-axis below all 3, without the last figure to have a different size than the other 2. Similar for the middle figure with the legend, I would like the legend to be outide the 6 figure, without affecting the size of one of the figures. I use arrangeGrob(plot1, plot2, ...., plot6) right now.
If anyone has a sollution, please let me know. Thank you in advance!