plotAgeSpans | R Documentation |
Plot the age ranges spanned by each observation period.
plotAgeSpans(
studyPopulation,
maxPersons = 10000,
title = NULL,
fileName = NULL
)
studyPopulation |
An object created using the |
maxPersons |
The maximum number of persons to plot. If there are more than this number of persons a random sample will be taken to avoid visual clutter. |
title |
Optional: the main title for the plot |
fileName |
Name of the file where the plot should be saved, for example 'plot.png'.
See the function |
Plots a line per patient from their age at observation start to their age at observation end.
A ggplot object. Use the ggplot2::ggsave()
function to save to file in a different
format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.