SachaEpskamp / qgraph

Developmental version of qgraph
GNU General Public License v2.0
68 stars 21 forks source link

Changing arrowhead symbol #31

Closed marknovak closed 5 years ago

marknovak commented 5 years ago

Any chance you could (explain how to) implement an option to replace the shape/symbol of the edge arrowheads with a different shape (e.g., any of the pch options of points())? I'm trying to create a graph that uses arrowheads to positive effects and circles (pch=19) for negative effects (e.g., link). thanks

SachaEpskamp commented 5 years ago

This might be more tricky than it seems. The function for drawing an arrow is here: https://github.com/SachaEpskamp/qgraph/blob/master/R/DrawArrow.R (does not use a base R plotting symbol). The hardest part here is that I would need to know exactly where a node ends and a circle on the edge end ends too, such that these ending points connect to each other. That will not be very trivial I'm afraid... so I won't pick this up any time soon.