[R] 'persp' query
Geoffrey William Heard
gwheard at students.latrobe.edu.au
Wed Oct 7 01:02:27 CEST 2009
Much thanks David and Peter
I thought about mtext, but didn't try it, as was unsure what the
appropriate 'side' value would be. Any thoughts?
Cheers
Geoff
-----Original Message-----
From: Peter Ehlers [mailto:ehlers at ucalgary.ca]
Sent: Wednesday, 7 October 2009 1:43 AM
To: David Winsemius
Cc: Geoffrey William Heard; r-help at r-project.org
Subject: Re: [R] 'persp' query
David Winsemius wrote:
>
> On Oct 6, 2009, at 4:46 AM, Geoffrey William Heard wrote:
>
>> Hi All
>>
>> I'm creating some 3-D plots using the function 'persp', and have a
>> query regarding the ability to make changes to the label of the
z-axis.
>>
>> There are two things I would like to do. First, the default setting
>> places the label a little close to the axis for my liking. Is there
>> any way of moving the label? I've tried adjustments with 'mgp' in
>> 'par', but without success. The second is to change the direction of
>> the label. Currently it reads top to bottom, whereas I would like it
>> to read bottom to top, as per a y-axis on a standard plot. Is there
>> anyway of doing so?
>
> ?mtext # and use the adj argument
>
Good idea. This works well if your z-axis is fairly vertical
on you plot.
-Peter Ehlers
More information about the R-help
mailing list