Can the letter \"a\" be removed from the legend associated with e.g. a fill
or colour
aesthetic, in a ggraph
network plot, like in the
Answer to the original question based on comments above: The following line of code has to be added on the top of the script as per @user20650 solution.
library(grid)
GeomLabel$draw_key <- function (data, params, size) { draw_key_rect(data) }
If repel = TRUE
argument is used inside geom_node_label
, then in addition to the above GeomLabelRepel$draw_key <- GeomLabel$draw_key
needs to be added.