plotLR: Helper function to plot a likelihood ratio between the eu and...

Description Usage Arguments Value See Also

View source: R/t21.R

Description

Helper function to plot a likelihood ratio between the eu and aneu population

Usage

1
2
3
plotLR(what, what_title, what_xlab, eu, aneu, res21, f = identity,
  f_inv = identity, diff_f_inv = function(x) rep(1, length(x)),
  pop_quantiles = c(0.001, 0.99))

Arguments

what

Which biomarker to plot

what_title

The title of the plot

what_xlab

The xlab to use

eu

Vector of length two containing the eu mean and standard deviation

aneu

Vector of length two containing the aneu mean and standard deviation

res21

Names list containing results of the DoE, likelihood ratio, etc. for each of the three biomarkers (+ nasal bone information)

f

Transformation function for the DoE (Default: identity)

f_inv

Inverse of f (Default: identity)

diff_f_inv

The derivate of 'f_inv' (Default: 1, because this is the derivative of the identify function )

pop_quantiles

Vector of length two defining the q-population quantiles to use as minimum and maximim for the x-range of the plot (Default: 'c(0.001,0.99)')

Value

A 'ggplot' object

See Also

[trisomy21risk::trisomy21]


hoehleatsu/trisomy21risk documentation built on Sept. 19, 2020, 8:44 p.m.