autoplot.vital | R Documentation |
Produce rainbow plot (coloured by time index) of demographic variable against against age.
## S3 method for class 'vital'
autoplot(object, .vars = NULL, age = age_var(object), ...)
object |
A vital including an age variable and the variable you wish to plot. |
.vars |
The name of the variable you wish to plot. |
age |
The name of the age variable. If not supplied, the function will attempt to find it. |
... |
Further arguments not used. |
A ggplot2 object.
Rob J Hyndman
Hyndman, Rob J & Shang, Han Lin (2010) Rainbow plots, bagplots, and boxplots for functional data. Journal of Computational and Graphical Statistics, 19(1), 29-45. https://robjhyndman.com/publications/rainbow-fda/
autoplot(aus_fertility, Fertility)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.