Displaying 1 result from an estimated 1 matches for "yaxisgrob".
Did you mean:
xaxisgrob
2009 Oct 23
1
Distance between axis and label adjusted automatically?
...there is no
universal estimation that looks good in all cases -- of course I
can provide a "safety margin", but it looks stupid when there is
too much space between label and axis.
I tried to use the relative positioning mechanism of frames,
roughly like this:
fb <- packGrob(fg,yaxisGrob(vp="dataRegion"),side="left")
fg <- packGrob(fg,textGrob("y axis label",rot=90),side="left")
But it appears that the true size of the axis is not respected;
numbers on the axis and the label still may overlap.
Can anyone provide a simple example how t...