Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling save_plot( ) non-interactively via Rscript creates empty Rplots.pdf file #204

Open
cdupai-bbi opened this issue Apr 15, 2024 · 0 comments

Comments

@cdupai-bbi
Copy link

Similar to this ggsave bug (tidyverse/ggplot2#2787), running save_plot() non-interactively with Rscript in the terminal produces the empty, unwanted file Rplots.pdf.

library(tidyverse)
library(cowplot)

plot_this <- 
  ggplot( data = data.frame( x=c(1,2,4), y = c(2,3,5)))+
  geom_point(aes(x = x ,y = y))
  
save_plot(
  "test.png",
    plot_this ,
    base_height = 6,
    bg = "white")


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant