Description Usage Arguments Details Value Author(s) Examples
Add a coloured rectangle to an existing Lexis grid to highlight a certain age in that Lexis grid.
1 2 | lexis_age(lg, age, delta = 1, fill = lexisplotr_colours()[1],
alpha = 0.7)
|
lg, |
an existing object originally created with |
age |
numeric, set the age to highlight. |
delta |
numeric, set the size of the age groups. Default is 1. |
fill |
character, set colour to fill the rectangle. |
alpha |
numeric, set alpha, the level of transparency for |
Takes an existing Lexis grid and adds a coloured rectangle that highlights all triangles belonging to a certain age.
A ggplot2 object.
Philipp Ottolinger
1 2 3 | library(LexisPlotR)
lexis <- lexis_grid(year_start = 1900, year_end = 1905, age_start = 0, age_end = 5)
lexis <- lexis_age(lg = lexis, age = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.