(CC-BY-NC-SA)

This document was produced on So Jun 12 2016 using mapview version 1.1.0


cubeView

cubeView lets you render a 3 dimensional, fully rotatable raster data cube from a RasterStack/Brick.

The visible layers are alterable by keys:

See this tweet for an impressive real-world example of cubeView

Note: Because of key focus issues key-press-events are not always recognised within RStudio at Windows. In this case open the view in a web-browser (RStudio button: “show in new window”).

Press and hold left mouse-button to rotate the cube. Press and hold right mouse-button to move the cube. Spin mouse-wheel or press and hold middle mouse-button and move mouse down/up to zoom the cube.

library(mapview)
library(raster)

kili_data <- system.file("extdata", "kiliNDVI.tif", package = "mapview")
kiliNDVI <- stack(kili_data)

cubeView(kiliNDVI)