Plot the age ranges spanned by each observation period.
Arguments
- studyPopulation
An object created using the
createStudyPopulation()
function.- 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
ggplot2::ggsave()
for supported file formats.
Value
A ggplot object. Use the ggplot2::ggsave()
function to save to file in a different
format.