[R] Adding % sign to ticks in persp()
Christofer Bogaso
bog@@o@chri@tofer @ending from gm@il@com
Sun Aug 5 15:04:12 CEST 2018
Hi,
Is there any way to add styles to the tick marks in persp() function?
For eample I want to add '%' suffix to the z-axis tick marks.in below plot :
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
op <- par(bg = "white")
persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue",
ticktype = "detailed")
[[alternative HTML version deleted]]
More information about the R-help
mailing list