[R] Plot size

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Apr 24 00:20:04 CEST 2001


Erin Hodgess <hodgess at uhddx01.dt.uh.edu> writes:

> Hello, R People:
> 
> How do I change the size of a graph, please?
> 
> I tried par(cin=c(8.5,11))
> and it said that 
> Warning message: 
> parameter "cin" can't be set in: par(args) 
> 
> 
> > par(fin=c(8.5,11))
> > plot(xa,ya)
> Error in plot.new() : Figure region too large
> 
> Also, can I set for portrait or landscape, please?
> 
> Thanks in advance!

Start with an explicit call to postscript/X11/windows. E.g.

postscript(width=8.5, height=11, horizontal=FALSE)
plot(xa,ya)

(or is it the other way around? I keep forgetting.)
-- 
   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