I would love to incorporate arrow shapes in plotly plots to represent genes as is possible with gggenes
geom_gene_arrow
, that is, thick arrows that can preferably overlap bars. Is this possible?
https://cran.r-project.org/web/packages/gggenes/vignettes/introduction-to-gggenes.html
An obvious way round this is to make the arrows yourself as polygons. The following function will handle the geometry:
Then, suppose you have data like this:
Then you can plot it as follows:
And you get a nice result in plotly: