Open jamiemkass opened 4 years ago
I have the same issue when knitting RMarkdown documents to pdf on Red Hat Linux 4.8.5-39 with RStudio Server Pro 1.3.1056-1 and R 4.0.0 using ggplot2 version 3.3.2 and ggtern version 3.3.0. I've also reproduced this error on my iMac and my Macbook (R version 3.6.3, Rstudio 1.3.959). A reprex of the Rmarkdown is included below:
---
output: pdf_document
---
```{r}
library(ggplot2)
This plot has the correct axes:
ggplot(mpg, aes(x = displ, y = hwy)) +
geom_point()
library(ggtern)
This plot does not have axes:
ggplot(mpg, aes(x = displ, y = hwy)) +
geom_point()
I suspect the issue is related to the masking of ggplot2 objects and some unintended consequences related to this.
The pdf output is also attached to this issue here: ggtern-repex.pdf
Has there been any progress on this? Continues to break ggplot across projects.
When I install ggtern, then try to plot in ggplot, the axes now disappear. I cannot make them come back unless I remove the ggtern package. I'm working in RStudio 1.3.959 and R 4.0.2 on MacOS 10.15.5.