CellChat
CellChat copied to clipboard
Questions about netVisual circle() drawing
When I use the following code to draw a communication graph, the pattern appears strange, is there something wrong?
groupSize <- as.numeric(table(cellchat@idents))
par(mfrow = c(1,2), xpd=TRUE)
netVisual_circle(cellchat@net$count, vertex.weight = groupSize, weight.scale = T, label.edge= F, title.name = "Number of interactions")
netVisual_circle(cellchat@net$weight, vertex.weight = groupSize, weight.scale = T, label.edge= F, title.name = "Interaction weights/strength")
other information
> packageVersion("CellChat")
[1] ‘2.1.2’
> groupSize
[1] 21118 321 3901 716 9509 408 2216
[8] 6011
After I modified the arrow.width and arrow.size parameters to the following code, I obtained a relatively normal image. Why are the default parameters set so large? It's strange. Was it my operational error that caused this problem regarding the arrows? And the arrows on the graph don't seem like arrows... How can I modify it to be normal?
> netVisual_circle(cellchat@net$count, vertex.weight = groupSize, weight.scale = T, label.edge= F, title.name = "Number of interactions",arrow.width = 0.02,arrow.size = 0.0)
> netVisual_circle(cellchat@net$count, vertex.weight = groupSize, weight.scale = T, label.edge= F, title.name = "Number of interactions",arrow.width = 0.02,arrow.size = 0.02)