[R] geom_node_point color in ggraph

Wolfgang Grond grond @end|ng |rom number|@nd@de
Thu Apr 15 16:57:03 CEST 2021


Dear all,

I'm joining differnts graphs to one with command graph_join from ggraph,

and try to color the nodes depending on the subgraph they come from.

To do that, I have these commands in my ggraph:

####################################################

...
geom_node_point(size = 8, aes(colour = project_all$Acronym)) +
     scale_color_discrete(name="Project / Projekt") +
...

####################################################

All works well, but

how to define the colors to use for the nodes?

Is it possible to either

- define the colors explicitely, or

- define a color palette to use?

Please point me to where I should look how to do it.

Many thanks in advance

Wolfgang


	[[alternative HTML version deleted]]



More information about the R-help mailing list