Skip to content
Prev 205908 / 398502 Next

How to control spaces between axis, tick and label in xyplot or xYplot?

On Jan 10, 2010, at 9:45 AM, willow1980 wrote:

            
Had you included a dataset that was executable, this might have been  
tested, but as it is I will only offer a hack that I have used in the  
past with y-labels in xYplot. My memory is that there are about 3 line- 
widths of space and that the y-labels are at the leftmost position by  
default. I have in the past moved the labels to the right with  
leading"\n"'s.

The help page for xyplot indicates that finer control of xlab and ylab  
can be accomplished via methods described in the section regarding   
main,  and there we find these ideas:

"Further named arguments are passed on to textGrob; this can include  
arguments controlling positioning like just and rot as well as  
graphical parameters such as col and font (see gpar for a full list)."
David Winsemius, MD
Heritage Laboratories
West Hartford, CT