# NOT RUN {
X <- c(3, 5, 1, 2, 4)
transformquantiles(X, reverse=TRUE)
transformquantiles(X, uniform=TRUE)
transformquantiles(X, uniform=TRUE, reverse=TRUE)
Z <- 100 * as.im(bei.extra$grad, dimyx=c(25,50))
opa <- par(mfrow=c(2,2))
plot(Z,main="original")
plot(transformquantiles(Z, reverse=TRUE), main="reverse=TRUE")
plot(transformquantiles(Z, uniform=TRUE),
main="uniform=TRUE", col=grey.colors,zlim=c(0,1))
plot(transformquantiles(Z, uniform=TRUE, reverse=TRUE),
main="uniform=TRUE, reverse=TRUE",
col=grey.colors, zlim=c(0,1))
par(opa)
# }
Run the code above in your browser using DataLab