Description Usage Arguments Examples
View source: R/output_processing.R
This function plots the output from model fitting.
1 2 | plot_model(model_output, type = "biphasic", detection_threshold = 20,
textsize = 9, pointsize = 1, linesize = 0.5, facet_col = NULL)
|
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", "single", or "triphasic". 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). |
1 2 3 4 5 6 7 | set.seed(1234567)
simulated_data <- simulate_data(nsubjects = 20)
model_output <- ushr(data = simulated_data)
plot_model(model_output, type = "biphasic")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.