[R] plot without points overlap
jwiley.psych at gmail.com
Fri Jan 7 20:53:32 CET 2011
On Fri, Jan 7, 2011 at 10:34 AM, JD <joonair at gmail.com> wrote:
> Hey, thanks for the suggestions but I'm still having some problem.
> I was able to modify the size pdf/ps file that I generate,
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.
> but still labels of the right side of the heatmap are not plot entirely.
> I tried par(mar..) par(pin..) but still cannot do it,
> any ideas?
> 2011/1/4 Joshua Wiley <jwiley.psych at gmail.com>
>> 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, asp = 2)
>> Hope that helps,
>> On Tue, Jan 4, 2011 at 8:46 AM, joonR <joonair at gmail.com> wrote:
>> > 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)
>> > --
>> > 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
>> > 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.
>> Joshua Wiley
>> Ph.D. Student, Health Psychology
>> University of California, Los Angeles
Ph.D. Student, Health Psychology
University of California, Los Angeles
More information about the R-help