Skip to content

How to set plot resolution

4 messages · bioshaw, Ben Bolker, Brian Ripley

#
bioshaw <bioshaw <at> qq.com> writes:
ylim=c(0,0.3),ann=F)
ylim=c(0,0.3),ann=F)
Worked for me.  Do you have memory or disk space problems?
I would try reducing the resolution a bit to see if that works
(I know that won't solve your problem but it will help
diagnose it).
res=1200,pointsize=10)
null device 
          1
Save workspace image? [y/n/c]: n


-rw-r--r--  1 ben ben 49499724 2008-12-30 08:46 test.tiff


ben at bolker-lap2:~$ display test.tiff

ben at bolker-lap2:~$ ls -lh test.tiff
-rw-r--r-- 1 ben ben 48M 2008-12-30 08:46 test.tiff
#
I think it should work on any reasonable machine, but it is worth pointing 
out that there are 4 separate tiff() devices:

Unix, X11
Unix, cairo,
Mac OS X, quartz,
Windows, graphapp

and once again we really did need the OS information asked for in the 
posting guide.  As I recall Ben uses one of the first two, and the error 
message looks like the fourth.

Also, the file size will depend on the contents, and the example was not 
reproducible.  (It is likely to be ca 48 or 64 Mb, though, depending if 
transparency is used.)
On Tue, 30 Dec 2008, Ben Bolker wrote:

            

  
    
#
Prof Brian Ripley <ripley <at> stats.ox.ac.uk> writes:
Thanks, Prof. Ripley.  I had forgotten about
cross-platform issues (a luxury that comes from working with
the 99% of R that is truly cross-platform compatible -- you
seem to spend a lot of time working on the other 1% ...)
And yes, I am working with Unix/X11.

  Ben Bolker