Description Usage Arguments Value
View source: R/pattern.plotter.R
Visualizes the age-mixing pattern from a Simpact-simulated population. This
function takes as input a datalist produced by pattern.modeller
and outputs a scatterplot of the age of the individual in the population
versus the age of their partner. The plot contains a dashed line that
represents a scenario where people choose partners that are the same age as
themselves. Juxtaposed with this is a line that represents the
population-average predicted partner ages based upon the generalised linear
mixed effects model in pattern.modeller
.
1 | pattern.plotter(dl)
|
dl |
The datalist that is produced by |
a large ggplot object of the age-mixing pattern
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.