ggraph icon indicating copy to clipboard operation
ggraph copied to clipboard

Feature Request: Layout arguments as aesthetics

Open billdenney opened this issue 4 years ago • 1 comments

I often use manual layouts. It seems like it would often be simpler to pass the layout arguments to ggraph() via an aes() rather than ... arguments to ggraph(). I realize that these aesthetics are categorically different than those used for the geom_*()s, so it could be confusing to the user, but in other ways, it seems like a logical fit.

Mostly, it is a feature for consideration that I think could help, but I would completely understand if it were not considered a good fit.

billdenney avatar Mar 24 '21 16:03 billdenney

As the developer of the graphlayouts package I would vote against this. While there are some parameters that are similar across different layout algorithms but overall, they differ significantly. As such, I think the ... is the most feasible approach, given also that most parameters have very good default values that do not need to be changed much.

schochastics avatar Jul 04 '22 14:07 schochastics

Agree with David. Further, there is no established or obvious conventions over whether node or edge data should be referred when creating a layout

thomasp85 avatar Jan 08 '24 14:01 thomasp85

Thanks for considering it. I understand the desire not to include it.

billdenney avatar Jan 08 '24 15:01 billdenney