Adding legend to ggplot

后端 未结 2 739
鱼传尺愫
鱼传尺愫 2021-01-27 06:23

This question is a follow-up to this post: previous post

I have 12 variables, M1, M2, ..., M12, for which I compute certain statistics

2条回答
  •  情深已故
    2021-01-27 07:06

    You can remove the background from the legend by adding:

    + theme(legend.background=element_rect(colour=NA) 
    

    Don't forget to add an last closing parenthesis.

提交回复
热议问题