Skip to content

plot without points overlap

4 messages · joonR, JD, Joshua Wiley

#
Hi,

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!

g

PS: Is it possible to produce device regions of different dimensions?
(i.e. a rectangular one with height > width)
#
Hi,

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).

Two Examples
#######
par(pin = c(2, 4))
plot(1:10)
dev.off()

plot(1:10, asp = 2)
#######

Hope that helps,

Josh
On Tue, Jan 4, 2011 at 8:46 AM, joonR <joonair at gmail.com> wrote:

  
    
3 days later
#
On Fri, Jan 7, 2011 at 10:34 AM, JD <joonair at gmail.com> wrote:
This is a somewhat different question.  The size of the finally
created portable document or postscript file is determined by the
width and height arguments when you start the respective device.  I
would just expand the size of the PDF/PS.  If you have a particular
aspect ratio you desire, then just be sure to expand height
proportionally when you add width to accommodate the labels.