Re: [R] Plotting confidence intervals with ggplot, in multiple facets.

2021-07-18 Thread Avi Gross via R-help
Rolf, Your example shows two plots with one above the other. If that is what you want, then a solution like the one Jeff provided using facet_grid() to separate data based on the parameter value. It also scales up if you add additional sets of data for gamma and delta up to a point. An alterna

Re: [R] Plotting confidence intervals with ggplot, in multiple facets.

2021-07-18 Thread Rui Barradas
Hello, Something like this? library(ggplot2) eg <- dget("data/egData.txt") ggplot(eg, aes(Ndat, estimate)) + � geom_errorbar(aes(ymin = lower, ymax = upper), width = 20) + � geom_point(colour = "slateblue", size = 1) + � geom_hline(yintercept = 0, colour = "red") + � facet_grid(param ~ .) +