crosshair | R Documentation |
Produces a crosshair plot or adds such a plot to an existing plot.
## Default S3 method: crosshair(x, correction = 0.5, level = 0.95, method = "wilson", xlim = c(0,1), ylim = c(0,1), length = 0.1, pch = 1, add = FALSE, suppress = TRUE, ...)
x |
a data frame with variables including |
correction |
numeric, continuity correction applied to zero cells. |
level |
numeric, confidence level for the calculations of confidence intervals. |
method |
character, method used to calculate the confidence intervals for sensitivities, specificities and false positive rates. One of |
xlim |
part of ROC space to be plotted |
ylim |
part of ROC space to be plotted |
length |
length of "whiskers" of the crosshair. |
pch |
Symbol used to plot point estimates. Use |
add |
logical, should the plot be added to the current plot? |
suppress |
logical, should the warnings produced by the internal call to |
... |
further arguments passed on to |
Crosshair plots go back to Phillips et al. (2010). Note that for fits of the reitsma
function a crosshair method is available to plot pooled estimate, see reitsma-class
.
Besides plotting, the function returns an invisible NULL
.
Philipp Doebler <philipp.doebler@googlemail.com>
Phillips, B., Stewart, L.A., & Sutton, A.J. (2010). “'Cross hairs' plots for diagnostic meta-analysis.” Research Synthesis Methods, 1, 308–315.
ROCellipse
, reitsma-class
data(AuditC) crosshair(AuditC)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.