[R] plot without points overlap
jwiley.psych at gmail.com
Tue Jan 4 18:08:26 CET 2011
You can set the device region in inches using the "pin" argument (see
?par maybe halfway down or so). You can also set the aspect ratio in
plot(), but I am not sure that is really what you want (see
?plot.window for that).
par(pin = c(2, 4))
plot(1:10, asp = 2)
Hope that helps,
On Tue, Jan 4, 2011 at 8:46 AM, joonR <joonair at gmail.com> wrote:
> I'm trying to plot a grid of points of different dimensions using the simple
> plot() function.
> I want to plot the points such that they DO NOT overlap,
> I guess there should be a way to set a maximum distance between the points,
> but I cannot find it.
> Can you help?
> Thanks a lot!
> PS: Is it possible to produce device regions of different dimensions?
> (i.e. a rectangular one with height > width)
> View this message in context: http://r.789695.n4.nabble.com/plot-without-points-overlap-tp3173894p3173894.html
> Sent from the R help mailing list archive at Nabble.com.
> 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.
Ph.D. Student, Health Psychology
University of California, Los Angeles
More information about the R-help