I am new to this book and get an error message with sample code for the first chapter. I installed the latest version of R 3.2.3 and RStudio. I installed the package_install.R specified by the sample code, and then installed ggplot2 myself. When I run the ufo_sightings.R code, I got an error following
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`. Error in strsplit(unitspec, " ") : non-character argument In addition: Warning message: Removed 1 rows containing non-finite values (stat_bin).
I am new to R, so I have no idea what is wrong. Can anyone help? Is it because I used the latest version of R?
Edit: I think I found a reason. If I change ggplot to version 1.01, it works fine. If I upgrade it to 2.0.0, an error will occur. I think this is a mistake?
source share