CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

netVisual circle: ident labels not showing up

Open livyring opened this issue 2 years ago • 1 comments

Hello! Whenever I run the following code to visualize my interaction weights and numbers, I get a plot that does not have labels on it (attached image)

cellchat <- aggregateNet(cellchat) groupSize <- as.numeric(table(cellchat@idents)) par(mfrow = c(1,1), xpd=TRUE) netVisual_circle(cellchat@net$count, vertex.weight = groupSize, vertex.label.cex = 1, weight.scale = T, label.edge= F, title.name = "Number of interactions") netVisual_circle(cellchat@net$weight, vertex.weight = groupSize, vertex.label.cex = 1, weight.scale = T, label.edge= F, title.name = "Interaction weights/strength")

Screen Shot 2022-08-18 at 8 41 32 PM

How can I get a circle plot with labels? Chord plots seem to work fine...

livyring avatar Aug 23 '22 15:08 livyring

my cellchat@net$count is a matrix with row names and columns that are my idents image

livyring avatar Aug 23 '22 17:08 livyring

I am getting the same issue. For whatever reason, I think if there are too many vertices they labels don't get displayed. Though if someone has a counter-example I am open to another theory; I'm not actually sure.

johnjeang avatar Oct 21 '22 20:10 johnjeang

Hi, I actually encountered the same problem, I have no clue why but plotting to a pdf file works well.

JonathanCruard avatar Mar 10 '23 15:03 JonathanCruard