[R] Spacing between x axis and labels

Mark Difford mark_difford at yahoo.co.uk
Tue Sep 25 18:25:43 CEST 2007


Also look at the mgp option under ?par.

This allows one to set the margin line for axis title, axis labels and axis
line...

Regards,
Mark Difford.



Marc Schwartz wrote:
> 
> On Tue, 2007-09-25 at 15:39 +0200, Christian Schäfer wrote:
>> Hi,
>> 
>> my x-axis contains labels that consist of two lines (the actual label 
>> and below information about groupsize). Unfortunately, there is too 
>> little spacing between labels and tickmarks in this situation. Is there 
>> a parameter to tune spacing between axis and labels?
>> 
>> Thanks,
>> Chris
> 
> See ?mtext and take note of the 'line' argument, which allows you to
> specify the margin line upon which to place text labels. The 'at'
> argument is used to define where on the axis the labels should be
> places.
> 
> If you are not already, you will want to use either 'axes = FALSE' or
> 'xaxt = "n"' in your plot call, so that the default axis labels are not
> drawn.
> 
> HTH,
> 
> Marc Schwartz
> 
> ______________________________________________
> 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.
> 
> 

-- 
View this message in context: http://www.nabble.com/Spacing-between-x-axis-and-labels-tf4516362.html#a12883395
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list