Dear Kommo
Many thanks for the valuable solution.
Sibylle
-Original Message-
From: R-help On Behalf Of Kimmo Elo
Sent: Friday, March 22, 2024 12:10 PM
To: r-help@r-project.org
Subject: Re: [R] geom_edge & color
Hi,
this seems to work (assuming that your problem was the set
p)
> %>%
>
> set_edge_attr(name = "color",
>
> value = c(viridis::viridis(21))
>
> [match(E(.)$type, c(factor(V(.)$name)))]) %>%
>
> set_vertex_attr(name = "trans_v_net", value = c(transitivity(., type =
> "l
ge_list$relationship)], alpha=0.5)) +
geom_node_point(aes(size = V(network)$hub_score*200, color=
as.factor(V(network)$community))) +
geom_node_text(aes(label = V(network)$name), size=3, color="white", repel=T)+
scale_color_scico_d(palette = "batlow")+
scale_edge_widt
Dear Sibylle,
your example is not working! E.g. no data for "aes_collapsed".
Best,
Kimmo
ke, 2024-03-20 kello 19:28 +0100, SIBYLLE STÖCKLI via R-help kirjoitti:
> Dear community
>
> I am using ggraph to plot a network analysis. See part 2 in the working
> example.
> Besides different colors
Dear community
I am using ggraph to plot a network analysis. See part 2 in the working
example.
Besides different colors for different groups of nodes:
--> geom_node_point(aes(size = V(network)$hub_score*200, color=
as.factor(V(network)$community)))
I additionally want to consider different
5 matches
Mail list logo