Message-ID: <18FBAD1B-DE40-4BCD-8B13-9EFAF27E14A5@comcast.net>
Date: 2012-09-10T21:17:48Z
From: David Winsemius
Subject: Position of y axis labels in plot graphic
In-Reply-To: <60C3010F-F686-4565-B122-2AF78DF0DFF4@gmail.com>
On Sep 10, 2012, at 8:24 AM, Nicolai Schneider wrote:
> Hello,
>
> I?m really sorry to bother you with this problem but it took me a whole day searching for a solution.
>
> I want the y axis labels positioned closer to the y axis, by default they are partly outside the window.
>
>
> Example:
>
> x <- as.zoo(EuStockMarkets)
>
> par(las=1)
>
> plot.zoo(x, type="l", main="", xlab="", yaxt="n", xaxs="i")
> title(main="Title", xlab="index")
>
> par(las=0)
I could be wrong, but I think you need to specify xaxt="n" to suppress the standard axis and then use axis to supply your own choices.
--
David Winsemius, MD
Alameda, CA, USA