adayim / consort

Create CONSORT diagrams for clinical studies.
Other
28 stars 4 forks source link

Collisions of boxes since `coords` removed #11

Closed harrelfe closed 3 months ago

harrelfe commented 1 year ago

WIth consort_plot I used to be able to avoid collisions of boxes by specifying coords. With the removal of that argument I'm getting collisions. An example with output is here: http://hbiostat.org/rflow/doverview.html#fig-doverview-consort

Thanks Frank

adayim commented 1 year ago

Hi Frank,

Thank you for reporting this. I will fix it and thank you for advocating this package. You can also try out plot(g, grViz = TRUE) to draw Graphviz plot.

adayim commented 1 year ago

Hi Frank,

It has been fixed now. The original grid plotting may not work perfectly but you can also use the following with Quarto to produce Graphviz directly:

```{r}
cat(build_grviz(g), file = "consort.gv")
//| label: consort-diagram
//| fig-cap: "CONSORT diagram of study XXX"
//| file: consort.gv

Or use the following to produce a nice SVG figure with `DiagrammeR`:
```r
plot(g, grViz = TRUE)