Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support Date Times Using reference_event #2

Open
4 of 5 tasks
rsh52 opened this issue Jul 13, 2023 · 0 comments
Open
4 of 5 tasks

[FEATURE] Support Date Times Using reference_event #2

rsh52 opened this issue Jul 13, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rsh52
Copy link
Contributor

rsh52 commented Jul 13, 2023

Feature Request Description

There is currently a reference_event argument for ggswim() which has not been incorporated into the business logic.

The idea here is that if time is not an integer/numeric value, i.e. Date/Date-time, that record swim lanes are centered automatically around a reference event from the event stream.

Additional Context

Example:

df <- tibble::tribble(
  ~subject_id, ~time, ~event,
  1, "2020-01-01", "Infusion",
  1, "2020-02-01", "CRS Grade 1",
  1, "2020-03-01", "CRS Grade 2",
  2, "2020-05-01", "Infusion",
  2, "2020-06-01", "No CRS",
  3, "2020-09-01", "Infusion",
  3, "2020-10-01", "CRS Grade 3",
...
)

ggswim(...
reference_event = "infusion",
...
)

Checklist

  • The issue is atomic
  • The issue description is documented
  • The issue title describes the problem succinctly
  • Developers are assigned to the issue
  • Labels are assigned to the issue
@rsh52 rsh52 added the enhancement New feature or request label Jul 13, 2023
@rsh52 rsh52 self-assigned this Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant