-
Notifications
You must be signed in to change notification settings - Fork 154
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
empty first page in pdf output #90
Comments
I believe setting the |
Thanks Jake. It does indeed solve the issue with the empty first page, but it doesn't allow you to output multipage pdf. In my case I only wanted a single page, so it works around my issue, thanks! The example code still produces a pdf with only the last plot as opposed to the desired 3 pages. pdf('upsetExample.pdf', width=10, height=7, onefile=F)
example(upset)
dev.off() So umm, feel free to close this unless you want to fix the multipage thing. I got what I needed, thanks. |
The reason for this, I believe, is that the upset plot functions (in In fact, I think that the upset function should merely return the grid objects, and a separate function should handle the plotting... |
The |
So has a true solution to this been found? I want to be able to use |
I haven't had this issue in base plotting. After a quick google, it seems like an issue with ggplot and pdf(): According to Claus Wilke in that thread, ggsave() replaces pdf() for this situation. |
All suggested options worked for on global .env, once I used within my own function the only thing that worked was (maybe because of .env):
Hope it helps others as well |
My UpSet plot wasn't displayed in my Sweave document because of the first blank page. I wasn't sure how to use the Below is a reproducible example. The plot displays with
|
Hi and thanks for a great package! I always link this package on twitter whenever I see a venn diagram with too many sets, as do many others.
For the (minor) issue I want to output a pdf, but it keeps producing an empty first page and the actual plot on the second page. For example
produces the attached file on my system.
upsetExample.pdf
I'm not experienced with ggplot, so not sure if this is a ggplot thing or an upset thing, sorry.
It's not hard to manually delete the empty page, but I'd like to to automate over many files and then it becomes a bit annoying.
Thanks, and all the best,
/Christoffer
The text was updated successfully, but these errors were encountered: