[R] 'persp' query
ehlers at ucalgary.ca
Tue Oct 6 14:58:21 CEST 2009
One way (the only way without modifying source code?) to satisfy
your first wish is to insert a newline before your label as in
zlab = "\nMy z-text".
I don't know of an answer for your second wish other than using
the single letter "Z" as your label :)
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?
> Would greatly appreciate any advice!
> Much thanks
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help