Incompatibility with new version of ggplot2
thomasjwood opened this issue · comments
thomasjwood commented
The recent changes in ggplot2
(it updated to 2.0.0 today) have seemingly broken ggthemr in a fundamental fashion.
for instance:
library(ggthemr)
ggthemr("flat")
results in the error message
Error: No geom called GeomJitter.
In addition: Warning messages:
1: `axis.ticks.margin` is deprecated. Please set `margin` property of `axis.text` instead
2: New theme missing the following elements: panel.ontop, strip.switch.pad.grid, strip.switch.pad.wrap
and making a simple plot
ggplot(diamonds, aes(x = x, y = y)) +
geom_point()
fails with this error message:
Error in if (theme$panel.ontop) { : argument is of length zero
Just thought you should be apprised, since the new ggplot2
is on Cran now.
My sessionInfo()
:
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] ggthemr_1.0.1 ggplot2_2.0.0
loaded via a namespace (and not attached):
[1] labeling_0.3 colorspace_1.2-6 scales_0.3.0
[4] plyr_1.8.3 tools_3.2.3 gtable_0.1.2
[7] Rcpp_0.12.2 grid_3.2.3 munsell_0.4.2