integer, set the year the Lexis Diagram starts with.
year.end
integer, set the year the Lexis Diagram ends with.
age.start
integer, set the age the Lexis Diagram starts with.
age.end
integer, set the age the Lexis Diagram ends with.
lwd
numeric, set the linewidth of the grid.
force.equal
logical, by default lexis.grid uses ggplot2::coord_fixed() to ensure isosceles trianlges. Set FALSE to allow for a non-isosceles appearance.
d
numeric, set the size of the age groups. Default is 1.
Value
The functions returns a ggplot2-plot.
Details
The function determines the aspect ratio of the x- and y-axis to enforce
isosceles triangles. The aspect ratio will not be effected by defining
width and height in pdf() or other graphic devices.
Because the returned object is a ggplot2 graph, the overall appearence of
the graph can be edited by adding themes() to the plot.