Learn R Programming

callback (version 0.1.1)

graph.stat_glob: Global callback rates plot

Description

Global callback rates plot

Usage

# S3 method for stat_glob
graph(
  data = NULL,
  method = "wilson",
  col = c("#F8766D", "#00BA38", "#619CFF"),
  ...
)

Value

A ggplot2 object

Arguments

data

A stat_glob object.

method

the type of confidence interval: "cp" for Clopper-Pearson, "wilson" for Wilson (the default), "student" for Student.

col

A list of colors (one colour needed).

...

further arguments passed to or from other methods.

Author

Emmanuel Duguet

Examples

Run this code
data(origin1)
m <- callback(labour1,"offer","hist","callback","all")
s <- stat_glob(m)
graph(s)

Run the code above in your browser using DataLab