第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

使用美學(xué)和geom_text時,從圖例中刪除“a”

使用美學(xué)和geom_text時,從圖例中刪除“a”

慕哥9229398 2019-09-02 09:10:43
如何從此代碼生成的圖例中刪除字母“a”?如果我刪除了geom_text,那么'a'字母將不會顯示在圖例中。不過我想保留geom_text。ggplot(data = iris, aes(x = Sepal.Length, y=Sepal.Width, shape = Species, colour = Species)) +    geom_point() +    geom_text(aes(label = Species))
查看完整描述

3 回答

?
呼啦一陣風(fēng)

TA貢獻(xiàn)1802條經(jīng)驗 獲得超6個贊

設(shè)置show.legend = FALSE為geom_text:


ggplot(data = iris,

       aes(x = Sepal.Length, y = Sepal.Width, colour = Species, shape = Species, label = Species)) + 

    geom_point() +

    geom_text(show.legend = FALSE)

該參數(shù)show_guide將名稱更改為show.legendin ggplot2 2.0.0(請參閱發(fā)布新聞)。


預(yù)ggplot2 2.0.0:


有了show_guide = FALSE這樣的...


ggplot( data=iris, aes(x=Sepal.Length, y=Sepal.Width , colour = Species , shape = Species, label = Species ) , size=20 ) + 

geom_point()+

geom_text( show_guide  = F )


查看完整回答
反對 回復(fù) 2019-09-02
  • 3 回答
  • 0 關(guān)注
  • 3038 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號