plot_quantiles function

plot quantiles

plot quantiles

Plot results for baggr quantile models. Displays results facetted per group. Results are ggplot2 plots and can be modified.

plot_quantiles(fit, ncol, hline = TRUE)

Arguments

  • fit: an object of class baggr
  • ncol: number of columns for the plot; defaults to half of number of groups
  • hline: logical; plots a line through 0

Returns

ggplot2 object

Examples

## Not run: bg <- baggr(microcredit_simplified, model = "quantiles", quantiles = c(0.25, 0.50, 0.75), iter = 1000, refresh = 0, outcome = "consumption") #vanilla plot plot_quantiles(bg)[[1]] plot_quantiles(bg, hline = TRUE)[[2]] + ggplot2::coord_cartesian(ylim = c(-2, 5)) + ggplot2::ggtitle("Works like a ggplot2 plot!") ## End(Not run)
  • Maintainer: Witold Wiecek
  • License: GPL (>= 3)
  • Last published: 2024-02-12