search for: vlim

Displaying 1 result from an estimated 1 matches for "vlim".

Did you mean: vim
2009 Apr 28
1
image3d in misc3d
...o be 1:3 and (2) the logic that needs to be adhered to in order to reliably match up the sphere plot with the image plot. library(misc3d) ##Set up array: arr <- array(1:27, dim = rep(3,3)) ## Plot image, with x, y, z positions all set (I thought) to 1:3 image3d(arr, x = 1:3, y = 1:3, z = 1:3, vlim = quantile(arr, c(0.01, 0.99))) ## Add spheres of the same data at the same positions spheres3d(x=expand.grid(x = 1:3, y = 1:3, z = 1:3), radius = 0.1 *sqrt(arr)) ## Ooops! So why don't they match up? Add axes: axes3d() ## For some reason the image3d is generating negative values of z... sph...