On 2013-03-12 13:27, Dieter Wirz wrote:
Hi -
levelplot (Package lattice) assumes, that the used Matrix is more or
less quadratic. But if the Matrix is e.g. 5x400 you get only a bar....

require(lattice)
# create a nice matrix
dat <- as.data.frame(matrix(runif(2000),ncol=5))
dat$V1 <- c(sin(1:400/80))
dat$V2 <- c(sin(1:400/75))
dat$V3 <- c(sin(1:400/70))
dat$V4 <- c(sin(1:400/65))
dat$V5 <- c(sin(1:400/60))
matrix <- abs(as.matrix(dat))

# and perform levelplot on
levelplot(matrix)

Is there (a simple) possibility to stretch the y axis.

Dieter

I'm not sure that this is what you want, but you could set the
argument 'aspect' to 'fill' instead of 'iso'.

Peter Ehlers

______________________________________________
R-help@r-project.org 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.

Reply via email to