I want to merge three subplots in with ggplot2. I know I can use gridspec_kw in matplotlib in python. Is there any similar way in ggplot2? For example, the range of x-axis of the plot 1 is (0,5), and the width of its x-axis is 5 cm. The range of x-axis of the plot 2 is (0,10), and the width of its x-axis must be 10 cm.
I use grid.arrange(plot1, plot2,plot3, ncol=3) to merge three subplots. How can I set the scale for x-axis to be equal for all subplots?