R/stat_pointinterval.R

# A stat_summary with a geom_pointinterval
#
# Author: mjskay
###############################################################################


#' @rdname ggdist-ggproto
#' @format NULL
#' @usage NULL
#' @export
StatPointinterval = ggproto("StatPointinterval", StatSlabinterval,
  default_aes = defaults(aes(
    datatype = "interval"
  ), StatSlabinterval$default_aes),

  default_params = defaults(list(
    show_slab = FALSE
  ), StatSlabinterval$default_params),

  hidden_params = union(c(
    "slab_type", "density", "adjust", "trim", "expand", "breaks", "align", "outline_bars", "limits", "n", "p_limits",
    "show_slab", "show_point", "show_interval"
  ), StatSlabinterval$hidden_params)
)

#' @eval rd_slabinterval_shortcut_stat("pointinterval", "point + multiple-interval")
#' @export
stat_pointinterval = make_stat(StatPointinterval, geom = "pointinterval")

Try the ggdist package in your browser

Any scripts or data that you put into this service are public.

ggdist documentation built on July 4, 2024, 9:08 a.m.