3 回答

TA貢獻(xiàn)1802條經(jīng)驗(yàn) 獲得超6個(gè)贊
設(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將名稱(chēng)更改為show.legendin ggplot2 2.0.0(請(qǐng)參閱發(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 )
- 3 回答
- 0 關(guān)注
- 3101 瀏覽
添加回答
舉報(bào)