Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How can we change which labels are displayed? #1

Open
octarinesun opened this issue Jun 11, 2021 · 0 comments
Open

Question: How can we change which labels are displayed? #1

octarinesun opened this issue Jun 11, 2021 · 0 comments

Comments

@octarinesun
Copy link

Love your package!

One thing I'm trying to do is only show labels for edges that meet certain criteria. For example in igraph, I could do something like this:

library(igraph)
set.seed(1)
g <- sample_pa(20)
V(g)$label <- letters[1:20]
plot(g, vertex.label = ifelse(degree(g) > 2, V(g)$label, NA))

image

I took a peek inside plotLinkCommGraph but didn't see a way to override vertex.label easily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant