[R] Changing mtext direction, or using text for the margin?
dwinsemius at comcast.net
Mon Jan 7 19:52:46 CET 2013
On Jan 7, 2013, at 10:45 AM, Michael Rennie wrote:
> 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
> I suspect going to grid() is where I'm going to have to go (after
> reading the relevant chapters in Paul Murrell's book....)
If you are going that route you may want to look at the gridBase
> 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`.
>> (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.
David Winsemius, MD
Alameda, CA, USA
More information about the R-help