[R] Position of y axis labels in plot graphic

MacQueen, Don macqueen1 at llnl.gov
Tue Sep 11 00:16:56 CEST 2012


Either way, there is a par() parameter to control the axis and label title
position.
Look at the entry for 'mgp' in ?par

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 9/10/12 2:17 PM, "David Winsemius" <dwinsemius at comcast.net> wrote:

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




More information about the R-help mailing list