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 | lexis.age(lg, age, fill = lpr_colours()[2], alpha = 0.7, d = 1)
|
lg, |
an existing object originally created with |
age |
numeric, set the age to highlight. |
fill |
character, set colour to fill the rectangle. Default is |
alpha |
numeric, set alpha, the level of transparency for |
d |
numeric, set the size of the age groups. Default is 1. |
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 4 5 6 | ## Not run:
library(LexisPlotR)
lexis <- lexis.grid2(year.start = 1900, year.end = 1905, age.start = 0, age.end = 5)
lexis <- lexis.age(lg = lexis, age = 3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.