According to function documentation, the node_label argument can be either set to "category", "group", "all" or "none".
However, when calling cnetplot on compareClusterResult with node_label set to "none" I get an error:
library(clusterProfiler)
library(enrichplot)
data(gcSample)
xx <- compareCluster(gcSample, fun="enrichKEGG", organism="hsa", pvalueCutoff=0.05)
x2 <- pairwise_termsim(xx)
cnetplot(x2, node_label='none')
Error:
Error in str2lang(paste("foldChange", node_label)) :
<text>:1:12: unexpected symbol
1: foldChange none
^
I don't get an error when setting node_lable to "all".
Thanks!
Jim
According to function documentation, the node_label argument can be either set to "category", "group", "all" or "none".
However, when calling cnetplot on compareClusterResult with node_label set to "none" I get an error:
Error:
I don't get an error when setting node_lable to "all".
Thanks!
Jim