pkgnet icon indicating copy to clipboard operation
pkgnet copied to clipboard

Provide an interface for custom weighting of edges and/or nodes

Open bburns632 opened this issue 6 years ago • 1 comments

Should we provide an interface for custom weighting of edges and/or nodes?

This would allow users more flexibility beyond current pkgnet defaults. Relates to #169.

bburns632 avatar Feb 10 '19 22:02 bburns632

More direct way to accommodate this one would be to add optional arguments to the CreatePackageReport function for node and edge tables with vizNetwork formatting values to override. If provided (and indexes aligned, etc), then those values would override the values here:

https://github.com/uptake/pkgnet/blob/a904eca16cc8ec7dc5d9429eb1e154fa97934021/R/AbstractGraphReporter.R#L388-L403

I'm leaning towards not supporting this level of customization directly in pkgnet. If a user is interested in this level of customization, it would be easier to use vizNetwork (or another graph visualization package of their choice) directly. We could write an example in this issue or a small vignette on how to extract the igraph networks from pkgnet and build in vizNetwork with different design choices.

Thoughts?

bburns632 avatar Apr 10 '24 17:04 bburns632