Skip to content
Prev 285471 / 398502 Next

[newbie] separating plot output from debug output

If you don't dev.off(), all plots will be sent to the open graphical
device. That usually doesn't impact behavior of other output types:

pdf(file='fooout.pdf')
hist(x <- rnorm(100))
y <- sin(x)
print(str(y))
cat(y,file='fooout.txt')
plot(x,y)
dev.off()

Hope this helps
On Wed, Feb 15, 2012 at 3:43 PM, Tom Roche <Tom_Roche at pobox.com> wrote: