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

Writing to pdf creates 2 pages #81

Closed
fmichonneau opened this issue May 12, 2017 · 1 comment
Closed

Writing to pdf creates 2 pages #81

fmichonneau opened this issue May 12, 2017 · 1 comment

Comments

@fmichonneau
Copy link

The code below generates a PDF files with 2 pages, the first one being blank:

> movies <- read.csv( system.file("extdata", "movies.csv", package = "UpSetR"), header=TRUE, sep=";" )
> pdf("/tmp/test.pdf")
> upset(movies)
> dev.off()
null device 
          1 
@JakeConway
Copy link
Member

Try adding onefile=F to pdf function

fmichonneau added a commit to fmichonneau/UpSetR that referenced this issue May 18, 2017
Using grid.null instead of grid.newpage seems to fix the problem of generating a
first blank page when writing files to a PDF graphical device.
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

2 participants