Description Usage Arguments Details Value Examples
Makes Butterfly Density Plots
1 2 3 4 5 6 7 8 |
sex |
Sex 1 = Male, 2 = Female |
age |
Age at diagnosis |
title |
Plot title |
infoHeight |
Position (the center) of summary statistics (use age units) |
infoWidth |
Position (the center) of summarry statistics (use density units) |
ageLimit |
Where to crop the top of age distribution (85 or 110 years) |
See the README on GitHub
ggplot
1 2 3 | butterfly(malesFemales1910$sex, malesFemales1910$age, "Census 1910")
butterfly(malesFemales2010$sex, malesFemales2010$age, "Census 2010",
infoHeight = 25, ageLimit = 110)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.