[R] dev.print

Scott Bartell sbartel at sph.emory.edu
Sat Mar 27 03:25:02 CET 2004


Hi,

Shouldn't the following commands produce a nice jpeg file, or am I
missing something?

hist(rnorm(1000))
dev.print(file="test.jpg",device=jpeg)

I get a very tiny (6x6 pixel) jpeg every time.  Using  

dev.copy(file="test.jpg",device=jpeg) ; dev.off()

instead of dev.print produces a perfectly nice plot, but is more
cumbersome.  

R bug or my misunderstanding?

Scott
Linux user




More information about the R-help mailing list