Skip to content

Cohorts do not display accurately when age_start is anything other than 0 #9

@dylanwglenn

Description

@dylanwglenn

Consider the Lexis diagram below:

Image

In order to achieve this under the current version, I use the following code:

age_start = 15

lexis_grid(year_start = 2018,
           year_end = 2026,
           age_start = age_start,
           age_end = 23,
           lwd = .1,
           delta= 1) %>%
  
  lexis_cohort(2004 + age_start)

In order for this plot to display correctly, I need to add age_start to the cohort parameter of lexis_cohort. This behavior is unexpected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions