OK, so there is a bit of a circular firing squad going on in some of my R installs with ggplot2. Apparently, you can get various CRAN/Github versions out of sync and a whole host of different. Here is how it started:
> df <- data.frame(x=runif(20),y=runif(20),z=runif(20))
Loading required package: ggplot2
Consider donating at: http://ggtern.com
Even small amounts (say $10-50) are very much appreciated!
Remember to cite, run citation(package = 'ggtern') for further info.
Attaching package: ‘ggtern’
The following objects are masked from ‘package:ggplot2’:
%+%, aes, annotate, calc_element, ggplot, ggplot_build,
ggplot_gtable, ggplotGrob, ggsave, layer_data, theme, theme_bw,
theme_classic, theme_dark, theme_gray, theme_light, theme_linedraw,
Error in f(..., self = self) : unused argument (<environment>)
hmmm…. Then ggmap also died.
To fix this, I did the following:
- Removed ggtern, ggplot2, and ggmap from my library
- Installed ggplot2 from CRAN
- Installed ggmap from GitHub
- Installed ggtern from Bitbucket (why not github, I don’t know).
Seems to work now.