From p.dalgaard at biostat.ku.dk  Mon Jan 24 17:23:26 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Mon Jan 24 17:26:50 2005
Subject: [Rd] R 'postscript' plot - not a valid postscript (PR#7559)
In-Reply-To: <20050124160552.E956FF111@slim.kubism.ku.dk>
References: <20050124160552.E956FF111@slim.kubism.ku.dk>
Message-ID: <x2sm4qzthd.fsf@biostat.ku.dk>

dan@bolser.co.uk writes:

> Full_Name: Mr. Daniel Murray Bolser
> Version: R 2.0.0 (2004-10-04)
> OS: Linux beagle 2.4.20-31.9 #1 Tue Apr 13 17:38:16 EDT 2004 i686 athlon i386 GNU/Linux
> Submission from: (NULL) (193.60.81.207)
> 
> 
> 
> Trying to execute the following code produces a 'not a valid postscript' error
> from various postscript readers (gv, ggv, ghostscript). A very similar code
> works fine.
> 
> <CODE>
> 
> postscript()
> 
> plot( 1:100, ylim=c(1,700), type='n', log='y')
> 
> abline(v=seq(0,100,10))
> abline(h=10)
> abline(h=seq(0,100, 10)) # Comment out this line and it works fine
> 
> dev.off()
> 
> </CODE>
> 

Just abline(h=0) gives the same effect, with the following in the
postscript file

77.04 nan m
716.61 nan l

which of course comes from trying to calculate log10(0).


> Looking at this just now I see the problem, but if a ps file is written, it
> should be viewable, so I think this is still a bug.

Yes. However, the workaround would be rather obvious...

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] R 'postscript' plot - not a valid postscript (PR#7559)
Peter Dalgaard