From: Paul Murrell <p.murrell_at_auckland.ac.nz>

Date: Wed 26 Jul 2006 - 06:02:12 EST

Date: Wed 26 Jul 2006 - 06:02:12 EST

Hi

Kilian Plank wrote:

> Good morning,

*>
**> in a 3D plot based on persp() the axis title (of dimension z) overlaps with
**> the axis labels.
**> How can the distance (between axis labels and axis title) be increased?
*

Unfortunately, there is not the same level of control that is available for 2D plots, but you can "cheat" a bit in this case. For example, ...

x <- seq(-10, 10, length= 30) y <- x f <- function(x,y) { r <- sqrt(x^2+y^2); 10 * sin(r)/r } z <- outer(x, y, f) z[is.na(z)] <- 1 par(mfrow=c(2, 1)) persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue", ticktype="detailed") persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue", ticktype="detailed", zlab="\n\n\n\nz")

Paul

-- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul@stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/ ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.Received on Wed Jul 26 06:08:16 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Wed 26 Jul 2006 - 08:23:46 EST.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*