lexis.year: Deprecated. Emphasize a certain year in Lexis grid.

Description Usage Arguments Details Value Author(s) Examples

View source: R/lexis.year.R

Description

Takes an existing Lexis grid and adds a coloured rectangle to highlight a certain age.

Usage

1
lexis.year(lg, year, fill = lpr_colours()[3], alpha = 0.7, d = 1)

Arguments

lg,

an existing object originally created with lexis.grid().

year

numeric, set the year to highlight.

fill

character, set the colour of the rectangle. Default is "blue".

alpha

numeric, set the transparency of the rectangle. Default is 0.5.

d

numeric, set the size of the age groups. Default is 1.

Details

Takes an existing Lexis grid and adds a coloured rectangle to the plot. The rectangle will highlight a certain year in the grid.

Value

A ggplot2 object.

Author(s)

Philipp Ottoliner

Examples

1
2
3
4
5
## Not run: 
lg <- lexis.grid(year.start = 1900, year.end = 1905, age.start = 0, age.end = 5)
lexis.year(lg = lg, year = 1902)

## End(Not run)

ottlngr/LexisPlotR documentation built on Jan. 12, 2020, 6:57 p.m.