SNAnalyst / SNAfun

FUNctions to enjoy alongside the SNA4DS course
https://snanalyst.github.io/SNAfun/
GNU General Public License v3.0
1 stars 0 forks source link

drop the 'weight' of an edge in snafun::plot_network_slices #27

Open SNAnalyst opened 2 months ago

SNAnalyst commented 2 months ago

when a graph has a weight attribute, snafun::plot_network_slices uses it. But this can create warnings:

In get.edge.value.active(net, sub(".active", "", attr),  ... :
  Multiple attribute values matched query spell for attribute interaction_type.active on some edges. Only earliest value used

Either:

SNAnalyst commented 2 months ago

as an example:

data("McFarland_cls33_10_16_96", package = "networkDynamic")
classroom <- cls33_10_16_96
snafun::plot_network_slices(classroom, number = 9, 
                    start = 0, end = 45,
                    digits = 3)