Open infotroph opened 9 years ago
Update: As of v0.1.0, all of the above examples still behave as reported if I call them as written above, but if I replace the deprecated mirror.ticks
with the now-recommended mirror_ticks
, all three examples behave as expected with no blank pages.
Updated severity: Maybe not even a problem? If anyone can trigger blank pages using mirror_ticks, please report how you did it.
I suspect that the unwanted blank page happens inside a call to ggplotGrob
:
mirror.ticks
calls mirror_gtable
immediately and passes it a ggplot
, while mirror_ticks
defers the call until it's triggered by a facet rendering event, at which time a gtable
is passed.mirror_gtable
converts non-gtable
arguments by calling ggplotGrob
.ggplotGrob
opens a new graphics device if there isn't one already open. Sure seems like a call to pdf(...)
would mean there's a device open, but ¯_(ツ)_/¯.
Calling
mirror.ticks()
on figures with legends, while saving to PDF, if plotting to page 1, produces a PDF with an extra blank page.Severity: Merely annoying.
This r-help thread from 2008 describes similar similar blank-page symptom and suggests this might come from different graphics functions fighting under the hood.