crosshair: Crosshair Plot.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/crosshair.R

Description

Takes a meta4diag object produced by the function meta4diag() and produces a crosshair plot or adds such a plot to an existing plot. Crosshair plots go back to Phillips et al. (2010).

Usage

1
2
  ## S3 method for class 'meta4diag'
crosshair(x, est.type = "mean", add = FALSE, main="Crosshair Plot", xlim, ylim, col, ...)

Arguments

x

A meta4diag object.

est.type

The estimates type used to make crosshair plot. Options are "mean" and "median".

add

If add is TRUE, the plots are added to an existing plot, otherwise a new plot is created.

main

A overall title for the plot.

xlim

A numeric value, giving the x coordinates ranges.

ylim

A numeric value, giving the y coordinates ranges.

col

Color of cross.

...

graphics parameters can also be passed to this function.

Value

Besides plotting, the function returns an invisible NULL.

Author(s)

Jingyi Guo

References

Phillips, B., Stewart, L.A., & Sutton, A.J. (2010). "'Cross hairs' plots for diagnostic meta-analysis." Research Synthesis Methods, 1, 308-315.

See Also

meta4diag

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
if(requireNamespace("INLA", quietly = TRUE)){
  require("INLA", quietly = TRUE)
  data(Catheter)
  res <- meta4diag(data = Catheter)
  crosshair(res, est.type="mean")
}

## End(Not run)

meta4diag documentation built on May 19, 2017, 7:39 a.m.

Search within the meta4diag package
Search all R packages, documentation and source code