change both legend titles in a ggplot with two legends

前端 未结 2 1249
走了就别回头了
走了就别回头了 2020-11-29 03:03

I have two legends on my ggplot with two different legend titles (automatically created from ggplot()). Now, I want to change this legend titles. + labs(

2条回答
  •  执笔经年
    2020-11-29 03:14

    If I understood your point correctly, you can simply use + labs(shape = "shape legend title", colour = "colour legend title")

提交回复
热议问题