Skip to content
Back to formatted view

Raw Message

Message-ID: <1197933596.6147.50.camel@localhost>
Date: 2007-12-17T23:19:56Z
From: Albert Greinoecker
Subject: margin between plot region and axes
In-Reply-To: <4767024E.9080008@stats.uwo.ca>

yes, that's it, thank's a lot to all respondents!

Am Montag, den 17.12.2007, 18:12 -0500 schrieb Duncan Murdoch:
> On 17/12/2007 4:19 PM, Albert Greinoecker wrote:
> > Am Montag, den 17.12.2007, 21:22 +0100 schrieb Scionforbai:
> >>> My question: is there a way to add axes the usual way (as tried for
> > the
> >>> first graphic), but to erase the margin, so that the axes start at
> > point
> >>> (0/0) in my case.
> >> Not really sure if this is what you ask, but maybe you should call
> >> your first plot() with xaxs="i" and yaxs="i". It reduces the default
> >> 4% increase on data range on both axis.
> > 
> > thanks for your answer and sorry for the weak explanation of the
> > problem.
> > To put it another way:
> > consider the following simple statement:
> > hist(rnorm(100))
> > how can I influence drawing of the axis so that they lie directly on the
> > edges of the bars? The solution on this I think could directly be
> > applied to my problem.
> 
> That's what he was getting at:
> 
>  > par(xaxs="i", yaxs="i")
>  > hist(rnorm(100))
> 
> Duncan Murdoch