ROCplot: Draws ROC curves for diagnostic accuracy studies

Description Usage Arguments Value

Description

This function creates an ROC plot. Returns or prints a ggplot object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
ROCplot(
  source_tbl,
  study,
  TP = "TP",
  FN = "FN",
  FP = "FP",
  TN = "TN",
  group_var = NULL,
  marker = NULL,
  colours = NULL,
  fontsize = 8,
  plabs = TRUE,
  axlabs = NULL
)

Arguments

source_tbl

Dataframe containing the meta-analysis data

study

Index column for unique study identifier e.g. "Obelix 50 B.c."

TP

Column name for column containing the True Positive values

FN

Column name for column containing the False Negative values.

FP

Column name for column containing the False Positive values.

TN

Column name for column containing the True Negative values.

group_var

Name of the column containig group identifiers for setting marker shape. Leave empty if not required.

marker

Name of the column containing values for setting marker size. Leave empty if not required.

colours

List of colours for group_var. Standard is greyscale.

fontsize

Font Size

plabs

Should each point be labled?

axlabs

X and Y axis lables, given as a list: c("X","Y")

Value

none


moritzlindner/metaplot documentation built on May 10, 2021, 9:38 p.m.