stocnet / manynet

Many Ways to Make, Manipulate, and Map Myriad Networks
https://stocnet.github.io/manynet/
Other
9 stars 0 forks source link

Make `graphr/s/t` functions accept arguments following US and British spelling #41

Open henriquesposito opened 6 months ago

henriquesposito commented 6 months ago

graphr(ison_adolescents, node_color = "blue") should be equivalent to graphr(ison_adolescents, node_colour = "blue")

jhollway commented 2 weeks ago

Could the ... be used to handle this? That is, if a user writes node_colour = "green", then we can list and look in the dot parameter ... for known aliases such as colour, check that this is not a repetition (e.g. node_color = "blue", node_colour = "green"), and if not apply the value/vector instead to node_color internally and at the outset?

henriquesposito commented 2 weeks ago

This is a good idea, I will try this out. Thank you for the feedback.