I am trying to generate networks using your ggClusterNet R package. I am having a hard time understanding why I have some my OTUs name appearing into the headers of the resulted edge object. Please see below.
> rare_ggclust_net2 <- ggClusterNet::model_igraph(cor = cor_rare,
+ method = "cluster_fast_greedy",
+ seed = 12,
+ Top_M = 20)
> str(rare_ggclust_net2)
List of 3
$ :'data.frame': 300 obs. of 3 variables:
..$ X1 : num [1:300] 1.59 4.89 -6.97 -5.49 9.54 ...
..$ X2 : num [1:300] 1.4 5.79 8.32 7.07 1.36 ...
..$ elements: chr [1:300] "OTU_1" "OTU_2" "OTU_3" "OTU_1835" ...
$ :'data.frame': 300 obs. of 6 variables:
..$ orig_model: num [1:300] 7 8 9 10 11 3 1 12 13 14 ...
..$ model : chr [1:300] "model_7" "model_8" "model_9" "model_10" ...
..$ color : chr [1:300] "#FDB567" "#FDD07D" "#FEE695" "#FEF6B1" ...
..$ OTU : chr [1:300] "OTU_1" "OTU_2" "OTU_3" "OTU_1835" ...
..$ X1 : num [1:300] 1.59 4.89 -6.97 -5.49 9.54 ...
..$ X2 : num [1:300] 1.4 5.79 8.32 7.07 1.36 ...
$ :Class 'igraph' hidden list of 10
..$ : num 300
..$ : logi FALSE
..$ : num [1:7973] 0 1 2 3 4 5 17 6 20 30 ...
..$ : num [1:7973] 0 1 2 3 4 5 5 6 6 6 ...
..$ : NULL
..$ : NULL
..$ : NULL
..$ : NULL
..$ :List of 4
.. ..$ : num [1:3] 1 0 1
.. ..$ : Named list()
.. ..$ :List of 5
.. .. ..$ name : chr [1:300] "OTU_1" "OTU_2" "OTU_3" "OTU_1835" ...
.. .. ..$ modularity : num [1:300] 7 8 9 10 11 3 1 12 13 14 ...
.. .. ..$ label : logi [1:300] NA NA NA NA NA NA ...
.. .. ..$ color : chr [1:300] "#FDB567" "#FDD07D" "#FEE695" "#FEF6B1" ...
.. .. ..$ frame.color: chr [1:300] "#FDB567" "#FDD07D" "#FEE695" "#FEF6B1" ...
.. ..$ :List of 3
.. .. ..$ weight : num [1:7973] 1 1 1 1 1 ...
.. .. ..$ correlation: num [1:7973] 1 1 1 1 1 ...
.. .. ..$ color : chr [1:7973] "#FDB567" "#FDD07D" "#FEE695" "#FEF6B1" ...
..$ :<environment: 0x559d09955508>
And finally I generate the edglist that strangely give me some weird names as HEADER... Why OTU_1 and OTU_2 are considered variable names instead of variable labels?
Additionally when I use the any of the ploygon layout methods I got a weird output when the variable cor is repeaded twice with values that make no sense (e.g. -) or placed in the same place as the Order level. Please see below.
Hello,
I am trying to generate networks using your ggClusterNet R package. I am having a hard time understanding why I have some my OTUs name appearing into the headers of the resulted edge object. Please see below.
Then I generate nodes
I generate the taxonomy
I add taxonomy and mean abundance to the nodes
And finally I generate the edglist that strangely give me some weird names as HEADER... Why OTU_1 and OTU_2 are considered variable names instead of variable labels?
Additionally when I use the any of the ploygon layout methods I got a weird output when the variable cor is repeaded twice with values that make no sense (e.g. -) or placed in the same place as the Order level. Please see below.
Thanks for your help,
Gian