[R] Aspect Ratio
r.ookie at live.com
Fri Aug 20 00:06:51 CEST 2010
plot(1:3) # usual way to view
plot(1:3, asp = 2) # convenient way to apply horizontal compression for visibility
plot(1:3, xlim = c(0, 4)) # but if you have information on what the graph looks like, you can manually apply the same horizontal compression
Was I going through some sort of "gang initiation" because I'm new, and didn't know it?
Phew, I'm glad it's over. Thanks for the help Spencer.
On Aug 19, 2010, at 2:50 PM, Spencer Graves wrote:
The documentation is not clear. It would help if it had an example like the following:
plot(1:2, 1:2/10, asp=1)
Does looking at these two plots answer the question?
On 8/19/2010 2:36 PM, David Winsemius wrote:
> On Aug 19, 2010, at 5:28 PM, r.ookie wrote:
>> Well, I had to look further into the documentation to see 'If asp is a finite positive value then the window is set up so that one data unit in the x direction is equal in length to asp * one data unit in the y direction'
>> Okay, so in what situations is the 'asp' helpful?
> It yet again appears that you are asking us to read the help pages for you.
>> On Aug 19, 2010, at 2:24 PM, David Winsemius wrote:
>> On Aug 19, 2010, at 5:13 PM, r.ookie wrote:
>>> x <- rnorm(n = 1000, mean = 0, sd = 1)
>>> plot(x = x, asp = 2000)
>>> Could someone please explain what the 'asp' parameter is doing?
>> You want us to read the help page to you?
> David Winsemius, MD
> West Hartford, CT
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Spencer Graves, PE, PhD
President and Chief Operating Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
More information about the R-help