ushr (version 0.1.0)

plot_model: Plot model fits

Description

This function plots the output from model fitting.

Usage

plot_model(model_output, type = "biphasic", detection_threshold = 20,
  textsize = 9, pointsize = 1, linesize = 0.5, facet_col = NULL)

Arguments

model_output

output from model fitting using ushr().

type

character string indicating whether the biphasic or single phase fits should be plotted. Must be either "biphasic" or "single". Defaults to "biphasic".

detection_threshold

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

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).

Examples

Run this code
# NOT RUN {
set.seed(1234567)

simulated_data <- simulate_data(nsubjects = 20)

model_output <- ushr(data = simulated_data)

plot_model(model_output, type = "biphasic")

# }

Run the code above in your browser using DataLab