How to have “a” removed from a ggraph plot legend?

后端 未结 1 407
感情败类
感情败类 2021-01-12 01:19

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

1条回答
  •  抹茶落季
    2021-01-12 01:53

    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.

    0 讨论(0)
提交回复
热议问题