Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

How to save multiple plots produced by netVisual_circle? #446

@lwlive

Description

@lwlive

Dear,
when I use cellchat ,I am wondering how to save multiple plots which produced from following code:
par(mfrow = c(1,2), xpd=TRUE)
netVisual_diffInteraction(cellchat, weight.scale = T)
netVisual_diffInteraction(cellchat, weight.scale = T, measure = "weight")

I have tried following commands but only one figure in the png file.
png("interaction_count_and_strength_circle2.png,width = 6007, height = 6003, res=300)
par(mfrow = c(1,2))
netVisual_circle(cellchat@net$count, vertex.weight = groupSize, weight.scale = T,margin=0, label.edge= F, title.name = "Number of interactions")
netVisual_circle(cellchat@net$weight, vertex.weight = groupSize, weight.scale = T,margin=0, label.edge= F, title.name = "Interaction weights/strength")
dev.off()

can you offer some help?

Thanks!
Wei

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions