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

d connection legend failing in some cases #162

Open
malcolmbarrett opened this issue Aug 13, 2024 · 0 comments
Open

d connection legend failing in some cases #162

malcolmbarrett opened this issue Aug 13, 2024 · 0 comments
Milestone

Comments

@malcolmbarrett
Copy link
Collaborator

library(ggdag, warn.conflicts = FALSE)
coffee_cancer_dag <- dagify(
  cancer ~ smoking,
  smoking ~ addictive,
  coffee ~ addictive,
  exposure = "coffee",
  outcome = "cancer"
)
ggdag_dconnected(coffee_cancer_dag, "coffee", "cancer")

dagitty::dconnected(coffee_cancer_dag, "coffee", "cancer")
#> [1] TRUE

Created on 2024-08-13 with reprex v2.1.0

@malcolmbarrett malcolmbarrett added this to the ggdag 0.3.0 milestone Aug 13, 2024
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

No branches or pull requests

1 participant