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

Implement automatic time-ordering of coordinates #115

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

malcolmbarrett
Copy link
Collaborator

This PR expands time_ordered_coords() to be able to create time-ordered coordinates automatically, e.g.

library(ggdag)
dagify(
  z3 ~ y,
  y ~ x1 + x2,
  a ~ z1 + z2 + z3,
  coords = time_ordered_coords()
) %>% ggdag()

Created on 2023-08-07 with reprex v2.0.2

You can also delay this step to tidy_dagitty() and specify "time_ordered" as the layout

@malcolmbarrett malcolmbarrett merged commit b153dc3 into main Aug 7, 2023
@malcolmbarrett malcolmbarrett deleted the auto-time-coords branch February 6, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant