ratesByAge | R Documentation |
This function is based on the rateplot function of the Epi package. It uses a APCList object and plots age-specific rates against period.
ratesByAge(APCList, age, per, scale=10^3, log.ax = "", ann = TRUE, grid = TRUE, ...)
APCList |
A |
scale |
Defining the scale of the rates. |
age |
Numerical vector giving the means of the age-classes. |
per |
Numerical vector giving the means of the periods. |
log.ax |
Character where '"y"' and '"r"' both refer to the rate scale. Defaults to '""'. |
ann |
Should the curves be annotated? Default: TRUE. |
grid |
Logical indicating whether a background grid should be drawn. Default: TRUE. |
... |
Additional arguments pssed on to 'rateplot'. |
Zero values of the rates are ignored. They are not shown in the plot.
'NULL'. The function is used for its side-effect, the plot.
Andrea Riebler
Bendix Carstensen, Martyn Plummer, Esa Laara, Michael Hills (2012). Epi: A Package for Statistical Analysis in Epidemiology. R package version 1.1.40. URL http://CRAN.R-project.org/package=Ep
rateplot
data(FemLCSweden) data(FemPYSweden) lc_sweden <- APCList(FemLCSweden, FemPYSweden, gf=5) ratesByAge(lc_sweden, 10^3, age=seq(27,82,by=5), per=1951:2010, col=topo.colors(nage(lc_sweden)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.