Plotting Quantile regression with full range in ggplot using facet_wrap
问题 So I would like to plot entire full range quantile lines in full range when using facet_wrap . The code goes as follows: library(tidyverse) library(quantreg) mtcars %>% gather("variable", "value", -c(3, 10)) %>% ggplot(aes(value, disp)) + geom_point(aes(color = factor(gear))) + geom_quantile(quantiles = 0.5, aes(group = factor(gear), color = factor(gear))) + facet_wrap(~variable, scales = "free") #> [multiple warnings removed for clarity] Created on 2019-12-05 by the reprex package (v0.3.0)