overlapping and fixing x-scales in facet (scale=“free”) in order to make a film
问题 With the help of @Justin on another post, I plotted simulation result with the facet_grid option in ggplot2. The post with data and answer is here: Use facet_grid option to plot column of dataframe with ggplot2 Here a copy of original sample data with added information about scale_x min and max values for each parameter type : dat <- read.table(textConnection("P1 P2 P3 P4 R 1 2e-5 1.0 0.6 3 1 2 4e-6 1.5 0.7 1.5 2 3 6e-7 1.2 0.6 2.5 3 4 8e-8 1.45 0.65 3.2 4 ")) scalx <- read.table