How should you disable your {ggtern} package to continue using the ggplot2::labs (caption = 'Text') function?
ggplot2 3.3.5 2021-06-25 [1] CRAN (R 4.0.3)
ggtern 3.3.5 2021-07-21 [1] CRAN (R 4.0.3)
# Work
library(ggplot2)
ggplot(mpg, aes(displ, hwy)) +
geom_point(aes(color = class)) +
geom_smooth(se = FALSE, method = "loess") +
labs(
caption = "Data from fueleconomy.gov"
)
and
# DO NOT Work
library(ggtern)
ggplot(mpg, aes(displ, hwy)) +
geom_point(aes(color = class)) +
geom_smooth(se = FALSE, method = "loess") +
labs(
caption = "Data from fueleconomy.gov"
)
And the error I get with the code above is:
geom_smooth() using formula 'y ~ x' Error in titleGrob(label, x, y, hjust = hj, vjust = vj, angle = angle, : unused argument (expand_y = TRUE).
How should you disable your {ggtern} package to continue using the ggplot2::labs (caption = 'Text') function?
ggplot2 3.3.5 2021-06-25 [1] CRAN (R 4.0.3)
ggtern 3.3.5 2021-07-21 [1] CRAN (R 4.0.3)
and
And the error I get with the code above is:
geom_smooth() using formula 'y ~ x' Error in titleGrob(label, x, y, hjust = hj, vjust = vj, angle = angle, : unused argument (expand_y = TRUE).