Skip to contents

Given a tibble created by createObservedOverExpectedTable create an observed over expected plot.

Usage

createObservedOverExpectedPlot(
  data,
  n = NObserved,
  observedRate = NULL,
  alpha = 0.05,
  sides = c("two", "lower", "upper")
)

Arguments

data

The tibble containing the calculated limits

n

The column in data that defines the sample size to which the corresponding limit(s) relate(s)

observedRate

The column in data that defines the observed rate. May be NULL.

alpha

The Type 1 error rate associated with the calculated limits. Default 0.05

sides

the sidedness of alpha. Either two, upper or lower. Default two.

Value

a ggplot2 object containing the requested plot