ap_cutoffs2image: Cutoff key image

View source: R/ch_functions.R

ap_cutoffs2imageR Documentation

Cutoff key image

Description

Create a cutoff key for scoring of Autoimmunity Profiling data and also produce an image. Uses ap_cutoffs2()

Usage

ap_cutoffs2image(
  cutoffkey = NULL,
  MADlimits = NULL,
  padding = c(4, 6, 4, 1),
  signsyntax = "Unicode",
  shouldpng = TRUE,
  filename = "CutoffColorKey.png"
)

Arguments

cutoffkey

table matching output from ap_cutoffs2(), recommended input if ap_norm2() has been used.

MADlimits

vector of MADs values used as boundaries for binning (≥MADs), eg. seq(0,70,5). Not used if cutoffkey is provided.

padding

numerical vector of the form c(bottom, left, top, right), passed to graphical parameter mar.

signsyntax

string value of either "Unicode" or "Expression", determines mode of printing "greater or equal" to sign.

filename

string with filename and desired path, end with .png

shouldpdf

Logical, should it plot to png?

Value

If MADlimits is provided a data.frame with three columns will be returned:

[,1] MADs cutoff value

[,2] Corresponding score value

[,3] Corresponding color using the Zissou1 palette in wes_palette


cekehe/rappp documentation built on May 17, 2022, 8:54 a.m.