ggdag icon indicating copy to clipboard operation
ggdag copied to clipboard

:arrow_lower_left: :arrow_lower_right: An R package for working with causal directed acyclic graphs (DAGs)

Results 28 ggdag issues
Sort by recently updated
recently updated
newest added

I think the coordinates API is unclear, as several people (myself included) have stumbled over it or missed it altogether. I think this needs a few changes: - [ ]...

In my own function '[plot.data.mappings](https://github.com/ben-oneill/utilities/blob/main/R/mappings.R)' I construct a DAG plot using ggplot2 with the ggdag functions for adding nodes, edges, etc. I have found that if you construct the plot...

wontfix

As discussed in #41. Right now, a single `dagitty` object is associated with a single `tidy_dagitty` object, but it would be possible to manage multiple DAGs and map through them...

While #27 added basic tests for every R file, more extensive testing needs to happen, particularly testing function arguments, edge cases, and verifying output against `dagitty::fun()`

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...

Thanks for the package. It took me some time to manage to use option `use_labels` in `ggdag`. Consider ``` dag % tidy_dagitty %>% ggdag(text = FALSE, use_labels = "label") ```...

ggraph 2.0.0 now uses `strength` instead of `curvature`. It may make sense to be consistent with this in ggdag

It would be nice to have a theme (or equivalent) to format the graph in the style of the DAGs in Causality (the book). Examples below. ![746AAAD1-2986-49C4-A9AA-8ECAB1AF0E82](https://user-images.githubusercontent.com/5638899/184991266-c87a09dc-6eae-463c-a670-51830396868e.png)

As discussed in #140, recent changes have broken the vignettes. They need to be updated to the newer syntactical changes.

With all the recent additions, I haven't been vigilant about test coverage. I should make sure it's high enough before 0.3.0