[R] About plot graphs

Greg Snow Greg.Snow at imail.org
Fri Aug 27 03:00:01 CEST 2010


There is a graphical parameter that controls whether a plot is square or takes up the maximum amount of room (rectangle), see ?par and look at the entry for pty. 

It is possible that you set pty='s' or it may be that the plot method sets it, without us knowing what type of object Date and Test01$Date are we don't know which method is creating your plot and cannot be much more help (that is meant as a subtle hint to provide the information requested in the footer of every post and the posting guide).

Some methods may set pty='s' as default but have an option to change it.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Stephen Liu
> Sent: Thursday, August 26, 2010 8:45 AM
> To: r-help at r-project.org
> Subject: [R] About plot graphs
> 
> Hi folks,
> 
> Following command prints 2 graphs side-by-side:-
> layout(matrix(1:2, nrow=1))
> plot(Date,Input_No.)
> plot(Test01$Date, Test01$Input_No.)
> 
> However each is a square graph I need a rectangular layout.  Pls advise
> how to
> make it.  TIA
> 
> B.R.
> satimis
> 
> 
> 
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list