DescTools (version 0.99.8.1)

PlotDotCIp: Plot a Dotchart with Binomial Confidence Intervals

Description

Plot a dotchart with binomial confidence intervals ("wilson") as segments.

Usage

PlotDotCIp(x, n, xlim = c(0, 1), 
           ord = c("rel", "abs", "names"), decreasing = FALSE, ...)

Arguments

x
number of successes, or a vector of length 2 giving the numbers of successes and failures, respectively.
n
number of trials; ignored if x has length 2.
xlim
the x limits of the plot.
ord
how should the result be ordered? Default is relative frequency "rel". The argument can be abbreviated.
decreasing
logical, sort order decreasing or ascending?
...
further arguments are passed to the function PlotDotCI().

See Also

PlotDotCI

Examples

Run this code
tab <- table(d.pizza$driver, d.pizza$wine_delivered)

PlotDotCIp(x=tab[,2], n=apply(tab,1,sum), ord="abs", dec=TRUE)

Run the code above in your browser using DataCamp Workspace