plot_lab: Create the Laboratory Measurements Plots

Description Usage Arguments Value Examples

View source: R/lab_plots.R

Description

This function will aggregate data and plot a combination of error bar and line plot.

Usage

1
plot_lab(data, test = c("ALT", "CRP", "IGA"))

Arguments

data

a data frame (tibble) of combined patient and laboratory measurements data

test

(character) type of laboratory test to plot. One of ALT, CRP or IGA

Value

a ggplot object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# ALT plot
plot_lab(data, test = "ALT")

# CRP plot
plot_lab(data, test = "CRP")

# IGA plot
plot_lab(data, test = "IGA")

## End(Not run)

dragosmg/rocheshiny documentation built on April 12, 2020, 12:22 a.m.