everdark / ggplot2_lecture_dsc2014

Place to store my slides for DSConf 2014 in Taipei
0 stars 4 forks source link

#22 warning msg #9

Closed suensummit closed 10 years ago

suensummit commented 10 years ago

> ggplot(iris, aes(x=Sepal.Length)) + geom_bar() # a HISTOGRAM indeed!
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
suensummit commented 10 years ago

23 也有


> ggplot(iris, aes(x=Sepal.Length, fill=Species)) + 
+     geom_bar(position='identity', alpha=.4) # now we have seen stack, dodge, and identity
stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
suensummit commented 10 years ago

看起來是只要沒有設 binwidth 他就會吐 warning

everdark commented 10 years ago

這是ggplot2做bar plot的行為,我認為不必理會。