Open Knighty16 opened 3 years ago
I am facing exactly the same issue while I am trying to correct a plot that I have already generated using previous versions of ggplot2.
packageVersion('ggplot2') [1] ‘3.3.5’
packageVersion('ggtern') [1] ‘3.3.0’
The following are appeared:
Error: geom_point requires the following missing aesthetics: x and y
Run rlang::last_error()
to see where the error occurred.
rlang::last_error() <error/rlang_error> geom_point requires the following missing aesthetics: x and y Backtrace:
- (function (x, ...) ...
- ggtern:::print.ggplot(x)
- ggtern:::ggplot_build.ggplot(x)
- ggtern:::by_layer(function(l, d) l$compute_geom_1(d))
- ggtern:::f(l = layers[[i]], d = data[[i]])
- l$compute_geom_1(d)
- ggplot2:::f(..., self = self)
- ggplot2:::check_required_aesthetics(...)
geom_point requires the following missing aesthetics: x and y Backtrace: █
Same error for me
I found the version combinations to get ggtern working again is:
reload:
R 4.0.2 ggplot2: 3.3.2 ggtern: 3.3.0 - ignore the warning...
Kind regards
Knighty16
There seems to be an issue with ggtern running with the new ggplot2. I have tried to load earlier versions of R, ggtern, and ggplot2 but cannot get them working. With the latest versions I get the following error:
Error: geom_point requires the following missing aesthetics: x and y