dots_and_bars: (Deprecated) Make dotplots with error bars with a single...

View source: R/ggplot_functions.R

dots_and_barsR Documentation

(Deprecated) Make dotplots with error bars with a single function

Description

Deprecated! Use stat_dots_and_bar instead!
Adds a dotplot, 95\ to a ggplot object. Almost identical to errorbars, but with the obvious additional geom_dotplot.
Right now, only uses default values for error bars

Usage

dots_and_bars(
  gg_obj,
  binaxis = "y",
  stackdir = "center",
  dotsize = 0.5,
  alpha = 0.2,
  ...
)

Arguments

gg_obj

The ggplot object (i.e., what is built up from ggplot(...)). If errorbars() does not immediately follow ggplot(...), use %+% instead of + to add the intervening ggplot layers until the ggplot object is piped into the function.

binaxis

Set by default to "y"

stackdir

Set by default to "center"

dotsize

Set by default to 0.5

alpha

Set by default to 0.2

...

Additional arguments for the stat_summary pair.

Examples

## Not run: ggplot(df, aes(x=x,y=y)) %+%
   geom_point() %>%
   dots_and_bars() +
   xlab("WHAAAT")

## End(Not run)

burchill/zplyr documentation built on Feb. 2, 2023, 11:01 a.m.