coverage.plot: Drawing the coverage plot

Description Usage Arguments Details Value Author(s) Examples

View source: R/coverage.R

Description

In a case where users closed the default coverage plot that the coverage function generated, the function coverage.plot redraws the coverage plot using the coverage object.

Usage

1

Arguments

cov

Any saved result of the coverage function.

Details

It is possible that a user want to redraw the coverage plot for any reasons. If the result of the coverage function was saved into a variable, this coverage.plot redraw the coverage plot using the saved result.

Value

The coverage plot will be displayed again.

Author(s)

Hyungsuk Tak, Joseph Kelly, and Carl Morris

Examples

1
2
3
4
5
6
7
  # baseball data where z is Hits and n is AtBats
  z <- c(18, 17, 16, 15, 14, 14, 13, 12, 11, 11, 10, 10, 10, 10, 10,  9,  8,  7)
  n <- c(45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45)

  b <- gbp(z, n, model = "binomial")
  cov <- coverage(b, nsim = 10)  
  coverage.plot(cov)

Rgbp documentation built on Dec. 18, 2019, 1:41 a.m.