Removing 'dot' element from ggplot2 legend

前端 未结 1 1932
粉色の甜心
粉色の甜心 2020-12-30 10:30

Example Code:

EmigProb<-c(rep(seq(0.1,0.8,length=5),4),rep(seq(0.1,0.8,length=5),4))
RemainEmigProb<-c(rep(0.2,5),rep(0.4,5),rep(0.6,5),rep(0.8,5),rep(         


        
相关标签:
1条回答
  • 2020-12-30 10:54

    Add this to your plotting command:

    guides(colour = guide_legend(override.aes = list(shape = NA)))
    

    Details on customizing legends along with lots more wonderful ggplot2 0.9 wisdom can be found here: http://cloud.github.com/downloads/hadley/ggplot2/guide-col.pdf

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