Look at the squishplot function in the TeachingDemos package, it may do what you want, or if not quite then you could perhaps tweak the code to include the values you want and create the correct aspect ratio.
-- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Silvia Cecere > Sent: Wednesday, November 17, 2010 10:26 AM > To: r-help@r-project.org > Subject: [R] aspect ratio 1 and blank space > > > Hi, > I need to produce an ordinary scatter plot and it is vital that the > aspect ratio equals 1. > > I set the axis as: > > plot(x, y, type="n", asp=1, ,ylim=c(-80,70),xlim=c(0,100)). > > The problem is that I get some 'additional' blank plot area (basically, > the lower bound of xlim becomes quite negative). > > The xlim is not the range of the x-data, but I need the 0 there for > further plotting. > > > Any way to specify that even with asp=1, xlim=c(0,100)? > > Thanks, > > ______________________________________________ > R-help@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. ______________________________________________ R-help@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.