thyroid: Plot TSH, fT3 and fT4 with respect to reference range.
Description
The function computes and plots TSH, fT3 and fT4 values with respect to
the provided reference range.
Usage
thyroid(TSH, fT3, fT4, TSHref, fT3ref, fT4ref)
Arguments
TSH
numeric vector of length 1: measured TSH concentration.
fT3
numeric vector of length 1: measured fT3 concentration.
fT4
numeric vector of length 1: measured fT4 concentration.
TSHref
numeric vector of length 2: reference range TSH.
fT3ref
numeric vector of length 2: reference range fT3.
fT4ref
numeric vector of length 2: reference range fT4.
Value
Invisible data.frame with the relative values.
Details
A simple function that computes the relative values of the measured values
with respect to the provided reference range and visualizes the values
using a barplot. Relative values between 40% and 60% are marked as O.K..