[R] axis labels

Don MacQueen macq at llnl.gov
Tue Oct 13 23:39:23 CEST 2009


See the 'mgp' argument to par(). You should be able to change mgp to 
get what you want.

-Don

At 5:58 PM +0100 10/13/09, jonas garcia wrote:
>Dear list,
>why does the distance between the axis labels and the tick marks looks
>different for x axis and y axis in the plot (see code below).
>In fact, the x axis labels look furthest from the tickmarks than in the y
>axis.
>How can I make them look the same?
>
>  par(mfrow=c(1,1), cex.axis = 0.5, cex.lab = 0.5)
>plot(1,1, axes = F)
>axis(1)
>axis(2)
>
>Thanks in advance
>
>Jonas
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>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.


-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062




More information about the R-help mailing list