Description Usage Arguments Details Value Author(s) Examples
View source: R/lexis.lifeline.R
Add lifelines to an existing Lexis grid.
1 2 | lexis.lifeline(lg, entry, exit = NA, lineends = F,
colour = lpr_colours()[7], alpha = 1, lwd = 0.5)
|
lg, |
an existing object originally created with |
entry |
character, set the entry or birth date of an individual in format |
exit |
character, set the exit or death date of an individual in format |
lineends |
logical, if |
colour |
character, set the colour of the lifelines. Default is |
alpha |
numeric, set the transparency of the lifelines. Default is |
lwd |
numeric, set the linewidth of the lifelines. Default is |
Takes an existing Lexis grid and adds lifelines to the grid. Input can be a single dates or dates from a vector.
A ggplot2 object.
Philipp Ottolinger
1 2 3 4 5 6 | ## Not run:
lg <- lexis.grid(year.start = 1900, year.end = 1905, age.start = 0, age.end = 5)
lexis.lifeline(lg = lg, entry = "1901-09-23")
lexis.lifeline(lg = lg, entry = "1901-09-23", exit = "1904-03-03")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.