Re: [R] dev.off and Cairo and ggplot2

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 5:55 PM, Stephen Eick wrote: I have a weird example which fails and I don't understand why. If I put dev.off() inside my function, it produces a bad image file. But if I run what I think should be equivalent code with dev.off() running outside my function, it works. Why d

[R] dev.off and Cairo and ggplot2

2011-07-13 Thread Stephen Eick
I have a weird example which fails and I don't understand why. If I put dev.off() inside my function, it produces a bad image file. But if I run what I think should be equivalent code with dev.off() running outside my function, it works. Why does the location of dev.off matter? library(Cairo)