2017-09-26 4 views
0

geom_barggplotグラフでこれらの色をより明白にする方法はありますか?特に、青/緑のもの。トップとボトムの色の間に白い線/スペースを入れる方法もありますか?GGPlotsの凡例の色がより明確になる

enter image description here

+0

あなたは '色=「白を追加してみてください、白線について – larsen

+0

(https://github.com/cttobin/ggthemr)[ggthemr]例えば使用して別のパレットを試みることができます"あなたの' 'geom_bar()'の中に? –

+0

geom_bar(color = "white")は機能しません – user8491385

答えて

1

colour = "white"あなたは色を区別役立つはずです。そうでない場合は、size=2を増やします。たとえば:

library(vcd) 
data(Arthritis) 
ggplot(Arthritis, aes(x = Treatment, fill = Improved)) + 
    geom_bar(colour = "white", size=2) 

enter image description here

関連する問題