Re: [R] geom_ribbon function in ggplot2 package

2018-12-19 Thread John
Thanks, Eik! Eik Vettorazzi 於 2018年12月19日 週三 下午5:12寫道: > Hi, > just add +scale_fill_discrete(name=NULL) > > Cheers > > Am 19.12.2018 um 07:05 schrieb John: > > Hi, > > > > When using the geom_ribbon function in gglot2 package, I got the text > > "fill" above the legend "A" and "B". How can I

Re: [R] geom_ribbon function in ggplot2 package

2018-12-19 Thread Eik Vettorazzi
Hi, just add +scale_fill_discrete(name=NULL) Cheers Am 19.12.2018 um 07:05 schrieb John: Hi, When using the geom_ribbon function in gglot2 package, I got the text "fill" above the legend "A" and "B". How can I get rid of the text "fill" above the legend? Thanks! The code is as follow

[R] geom_ribbon function in ggplot2 package

2018-12-18 Thread John
Hi, When using the geom_ribbon function in gglot2 package, I got the text "fill" above the legend "A" and "B". How can I get rid of the text "fill" above the legend? Thanks! The code is as follows: df<-data.frame(x=c(1,2), y=c(1,2), z=c(3,5)) > ggplot(df, aes(1:2))+geom_ribbon(aes(ymin=0