stefpeschel / NetCoMi

Network construction, analysis, and comparison for microbial compositional data
GNU General Public License v3.0
146 stars 26 forks source link

Can not turn label off #62

Closed lixiaopi1985 closed 2 years ago

lixiaopi1985 commented 2 years ago

Hi Stef,

I have a problem with turning label off. Set it to TRUE did not work, only works when this parameter is not specified. Please see the code below, can you take a look at it? (I'll send you the epi.prt file). Thank you a lot!

net.epi.prt = NetCoMi::netConstruct(epi.prt, 
                                    measure = "pearson", 
                                    normMethod = "clr", 
                                    zeroMethod = "multRepl", 
                                    sparsMethod = "threshold", 
                                    thresh = 0.5, verbose = 3)

net.epi.prt.anal = netAnalyze(net.epi.prt, 
                              hubPar = c("degree", "closeness", "betweenness"),
                              clustMethod = "cluster_fast_greedy")

> plot(net.epi.prt.anal,
+      layout = "spring",
+      repulsion = 0.85,
+      nodeColor = "cluster",
+      nodeSize = "degree",
+      borderCol = "grey50",
+      labels = F)
Error in if (any(cexLabels1 == 0)) { : 
  missing value where TRUE/FALSE needed

> plot(net.epi.prt.anal,
+      layout = "spring",
+      repulsion = 0.85,
+      nodeColor = "cluster",
+      nodeSize = "degree",
+      borderCol = "grey50",
+      labels = T)
Error in if (any(cexLabels1 == 0)) { : 
  missing value where TRUE/FALSE needed
lixiaopi1985 commented 2 years ago

This issue was mentioned #43 and fixed by the latest version.