[R] R-Graphics

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Jul 26 23:50:14 CEST 1999


partha_bagchi at hgsi.com writes:

> I am having a strange problem with R graphics:
> I am testing out R on a Sun Solaris machine. I generate a simple postscript
> graph as:
> 
> postscript(file="temp.ps", paper= "letter")
> plot(c(1:10), xlab= "index", ylab= "Cell Count")
> title("Generic Test of R-Graphics")
> dev.off()
> 
> When I view the temp.ps file with gs (version 5.50) I get the graph rotated
> by at least 90 deg. Is this a bug or have I missed something?
> TIA.

PostScript, bounding boxes, and paper orientations are tricky issues.
"gv" gets this one right. I suspect that the trouble is that gs
doesn't really know what to do with the metacomment

%%Orientation: Landscape

so it assumes that the paper is portrait and displays it like that.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list