[R] Changing mtext direction, or using text for the margin?
Michael Rennie
mdrennie at gmail.com
Mon Jan 7 19:45:30 CET 2013
Right- I think the issue is getting a text() command (which does accept
srt) to work outside the plot region, and in the margin where I need it
to appear. This is easy to "hack" in a single plot, but not so clear how
to do it in a multi-panel environment with an outer margin.
I suspect going to grid() is where I'm going to have to go (after
reading the relevant chapters in Paul Murrell's book....)
Mike
David Winsemius wrote:
>
> On Jan 7, 2013, at 8:06 AM, Michael Rennie wrote:
>
>>
>> Any thoughts on what that dirty hack might be or any leads on where
>> to start? Perhaps a whole new plot region in the margin or something?
>> Is that even possible? I'm having a difficult time imagining how I
>> can do this.
>
> The `text` function accepts the 'xpd' argument for `par`.
>
> ?par
> ?text
>
> (Similar but not exactly the same as R-FAQ "7.27 How can I create
> rotated axis labels?")
>
> I'm not sure what sort of "dirt" Uwe was expecting, but I'm guessing
> he meant that you probably were not going to be getting exactly what
> you wanted with the first attempt and were going to need to adjust the
> locations "by hand" after digging around in the par documentation.
>
More information about the R-help
mailing list