Version: Observed in 2.5.1
> x <- 1:10
> y <- 1
> z <- array(1:10,dim=c(10,1))
> persp(x,y,z)
Error in persp(x, y, z, xlim, ylim, zlim, theta, phi, r, d, scale, expand, :
invalid 'x' argument
The problem isn't 'x'. It's 'y'.
__
R-help@r-proj
Version: 2.5.1
array() is inconsistent when given non-integral dimensions:
> zz <- array(0,dim=c(4,3.01))
> dim(zz)
[1] 4 3
> zz <- array(0,dim=c(201,4.05))
Error in dim(data) <- dim : dim<- : dims [product 804] do not match the length
of object [814]
[IMHO the code that did this is broken. M
I recently called plot(x,y) where x was an array of POSIXct timestamps,
and was pleasantly surprised that it produced a nice plot right out of
the box:
z <- as.POSIXct(c("2006-10-26 08:00:00 EDT","2007-10-25 12:00:00 EDT"))
x <- seq(z[1],z[2],len=100)
y <- 1:100
plot(x,y,type="l")
The X axis ha
3 matches
Mail list logo