Skip to content
Prev 179109 / 398506 Next

lattice levelplot axis + custom annotations

On May 2, 2009, at 7:00 PM, Alex Reynolds wrote:

            
Not sure since you have not provided a reproducible example and not  
really defined what "annotations" means. See if you can derive a more  
genral priciple by comparing with this example  to the first example  
on hte levelplot help page:
x <- seq(pi/4, 5 * pi, length.out = 100)
y <- seq(pi/4, 5 * pi, length.out = 100)
r <- as.vector(sqrt(outer(x^2, y^2, "+")))
grid <- expand.grid(x=x, y=y)
grid$z <- cos(r^2) * exp(-r/(pi^3))
levelplot(z~x*y, grid, cuts = 50, scales=list(log="e",  
x=list(at=c(1,3.10)), y=list(at=c(1,10))), xlab="",  ylab="",  
main="Weird Function", sub="with log scales", colorkey = FALSE, region  
= TRUE)
David Winsemius, MD
Heritage Laboratories
West Hartford, CT