plot_data: Plot data

Description Usage Arguments Examples

View source: R/output_processing.R

Description

This function plots raw, filtered, or simulated data.

Usage

1
2
plot_data(data, textsize = 9, pointsize = 1, linesize = 0.5,
  facet_col = NULL, detection_threshold = 20)

Arguments

data

data frame of raw, filtered, or simulated data. Must include the following columns: 'id' - stating the unique identifier for each subject; 'vl' - numeric vector stating the viral load measurements for each subject; 'time'- numeric vector stating the time at which each measurement was taken.

textsize

numeric value for base text size in ggplot. Default is 9.

pointsize

numeric value for point size in ggplot. Default is 1.

linesize

numeric value for line width in ggplot. Default is 0.5.

facet_col

numeric value for number of columns to use when faceting subject panels. Defaults to NULL (i.e. ggplot default).

detection_threshold

numeric value indicating the detection threshold of the assay used to measure viral load. Default value is 20.

Examples

1
2
3
4
5
set.seed(1234567)

simulated_data <- simulate_data(nsubjects = 20)

plot_data(simulated_data)

ushr documentation built on April 22, 2020, 1:05 a.m.