Description Usage Arguments Value Examples
This is a convenience function that allows the user to easily plot the
observed longitudinal biomarker trajectory for each individual. Each individual
is shown in a separate facet in the plot. This function can be useful
to assess whether the "true" parameter values passed to simjm
are generating realistic longitudinal trajectories for the simulated
biomarkers.
1 2 |
yvar |
Name of the variable corresponding to the longitudinal biomarker. |
data |
The data frame with simulated data for the longitudinal
submodel. The variable indicating the individual should be called "id",
as is the case in the data frames returned by |
data_filter |
Optionally, a condition wrapped in quotes indicating the
subset of individuals to include in the plot (for example we could use
|
timevar |
Name of the variable corresponding to time. |
idvar |
Name of the variable identifying individuals. |
A ggplot
object that can be further customised using the
ggplot2 package.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.