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

Parse edge control points when converting from dagitty syntax #21

Open
jtextor opened this issue Dec 7, 2019 · 1 comment
Open

Parse edge control points when converting from dagitty syntax #21

jtextor opened this issue Dec 7, 2019 · 1 comment
Milestone

Comments

@jtextor
Copy link

jtextor commented Dec 7, 2019

dagitty allows to specify a single control point when drawing edges, e.g.

dag {
bb="-3,-0.5,2,1.2"
D [outcome,pos="1.000,1.000"]
E [exposure,pos="-2.000,1.000"]
Z [pos="-0.500,0.500"]
D <-> Z [pos="1.000,-1.000"]
E -> D
E <-> Z [pos="-2.000,-1.000"]
}

The edge control points are currently not imported by ggdag, which would be convenient for users who use the dagitty web interface to initially build dogs.

@malcolmbarrett malcolmbarrett added this to the ggdag 0.3.0 milestone Jan 15, 2020
@malcolmbarrett
Copy link
Collaborator

Note to self on this: rather than trying to replicate exactly what the user sees in the web interface, which would be a difficult game to get into, maybe the control point information can be transformed into a curvature value for curved edges

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

2 participants