David Schoch
David Schoch
Support of Vector Graphics would indeed be good to have. Happy to look at a PR for this since I have currently no time to implement it.
Thanks for the suggestion! I'll put this on the list for the next release.
I assume `V(PS_weight_igraph)$modularity` is a numeric attribute so you need to convert it to a factor to use a discrete color scale: ``` geom_node_point(aes(fill = as.factor(modularity)), size = (sqrt(graph.strength(PS_weight_igraph)))*3, shape...
change the code within the for loop to ```r rem_nodes
Dont think this is an issue with ggraph, because the same behaviour appears in ggplot ``` r library(ggplot2) data.frame(x=c(0,0,0,0,0), xend=c(1,0,-1,0,0.5), y=c(0,0,0,0,0), yend=c(0,1,0,-1,-0.5), w= c(1,2,3,1,2)) |> ggplot()+ geom_segment(aes(x,y,xend=xend,yend=yend,size=w)) ```  Created...
Hard to say if there is something else going wrong, but assuming `graph` is an igraph object then what `graph$category` does is access a graph level attribute. The actual syntax...
If anyone is looking for a workaround, here is what I do. Not sure if it is the best way, but it works. ``` r library(igraph) library(ggraph) g
@mgree013 still an issue? if so, happy to take a look if you provide an example
Is Sub_Type a node attribute? From your code it seems that it is an edge attribute which cannot be used to color nodes.
I like this! You can actually simply use `geom_shadowtext()` since the layout coordinates of nodes are stored in a "hidden" data.frame. ``` r library(igraph) library(ggraph) g