Description Usage Arguments Value Examples
View source: R/butterfly_closed.R
Make a butterfly plot
1 | butterfly_closed(sex, age, title = NULL, vertical = TRUE)
|
sex |
1 = Male, 2 = Female |
age |
Age at diagnosis |
title |
Plot title |
vertical |
TRUE/FALSE, TRUE is a closed butterfly, FALSE horizonal overlapped density plot |
ggplot
1 2 | butterfly_closed(malesFemales2010$sex, malesFemales2010$age, "Census 2010")
butterfly_closed(malesFemales2010$sex, malesFemales2010$age, "Census 2010", vertical=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.