ggtern not playing nice with data layers
Issue #18
new
It appears that geom_point is no longer inheriting aes from ggtern. It was functioning properly just last week, but now geom_point is throwing Error: geom_point requires the following missing aesthetics: x and y
whenever I try to run it as a ggtern layer. I've also tried 'stat_density_tern()' but get the same error. The ternary plot prints fine when run on its own.
I'm running ggplot2 3.3.5 and ggtern 3.3.0 on R/3.6 (by choice) with a supercluster (meaning, I have limited software control). Is it just me? Or is there perhaps a version conflict somewhere?
> head(df1)
env spatial biotic
1 0.2325945 0.45160744 0.3157980
2 0.3169082 0.56077522 0.1223166
3 0.1162851 0.03513186 0.8485830
4 0.4517616 0.10561795 0.4426205
5 0.1083371 0.26643314 0.6252297
6 0.1033839 0.48109420 0.4155219
ggtern(df1, aes(biotic,env,spatial)) + geom_point(color="coral2", alpha=0.5, size=2)
Turns out there is some compatibility conflict. Reverting to ggplot2 v3.3.3 seemed to correct the issue for me.