getPrecisionRecall: get precision-recall plot and data

Description Usage Arguments Value Author(s)

View source: R/getPrecisionRecall.R

Description

This function can be used to generate the pseudo-recall plot

Usage

1
2
3
4
5
6
7
getPrecisionRecall(
  data,
  scores,
  p.title = NULL,
  fdr_threshold = c(0.01, 0.05),
  precrecall_zoom = NULL
)

Arguments

data

A data.table containing p-value/q-value score and true class labels

scores

A character vector of the data column name scores to compute the pseudo-recall for

p.title

A character to label plot

fdr_threshold

A numeric vector to add fdr threshold lines to the plot. Default: fdr_threshold = c(0.01, 0.05)

Value

A list containing the ROC data and a ggplot

Author(s)

Justin Sing https://github.com/singjc


singjc/mstools documentation built on June 28, 2020, 8:10 p.m.