Skip to content

some weird arrow head being generated. #26

@mdagit

Description

@mdagit

Below is my R program, then the input data, and attached is the svg string and the visual rendering.
You can see in the bottom right a weird distorted arrowhead polygon.
I tried both the latest release and latest main branch.

library(consort)
library(DiagrammeRsvg)

df <- read.csv(file("stdin"))

out <- consort_plot(data = df,
order = c(trialno = "Assessed for Eligibility",
exc = "Excluded",
arm = "Randomized",
fow1 = "Never Started",
trialno = "Follow Up",
fow2 = "Discontinued",
trialno = "Final Analysis"),
side_box = c("exc", "fow1", "fow2"),
allocation = "arm",
labels = c("1" = "Enrollment", "2" = "Allocation",
"4" = "Follow-Up",
"5" = "Final Analysis"),
cex = 0.6)

svg <- export_svg(plot(out, grViz = TRUE))

library(htmltools)
print(HTML(svg))


trialno,exc,arm,fow1,fow2
1,NA,Yoga Standard,NA,NA
2,NA,Yoga Ayurvedic,NA,NA
3,NA,Education Control,NA,NA
10,Substance Misuse,NA,NA,NA
11,Currently Practicing Yoga,NA,NA,NA
20,NA,Yoga Standard,reason unknown,NA
21,NA,Yoga Ayurvedic,work/school/childcare conflict,NA
30,NA,Education Control,NA,injury outside study
31,NA,Yoga Ayurvedic,NA,work conflict

plot
svg_render

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions