plotLabs: Plot labs

Description Usage Arguments Value

View source: R/plotLabs.R

Description

Plots a single lab as line plot or box plot.

Usage

1
2
plotLabs(data, lab, chart, id = FALSE, timepoint = FALSE,
  groups = FALSE, interactive = FALSE)

Arguments

data

A data frame extracted from Diamonds in the 'raw“ format.

lab

A character vector of a single lab from the ObservationId column to be plotted.

chart

A character vector of the chart type. Available options include "line" or "box".

id

A Boolean indicating if the patient medical record numbers should be replaced with patient IDs. If this option is selected, filter the data first using the filterDiamonds function and specify IDs.

timepoint

A Boolean indicating if the the name of the time point should be displayed in place of the nubmer of days since the first time point. If this option is selected, filter the data first using the filterDiamonds function and time points.

groups

A Boolean indicating if the data should be grouped. If this option is selected, filter the data first using the filterDiamonds function and specify a grouping variable.

interactive

A Boolean indicating if the plot should interactive. If TRUE then plot is interactive, if FALSE then the plot is static.

Value

Returns a line plot or box plot in ggplot sytle.


davidcoffey/Nexus documentation built on March 10, 2020, 4:54 p.m.