cubeViewOutput {cubeview} | R Documentation |
Widget output/render function for use in Shiny
Description
Widget output/render function for use in Shiny
Usage
cubeViewOutput(outputId, width = "100%", height = "400px")
renderCubeView(expr, env = parent.frame(), quoted = FALSE)
Arguments
outputId |
Output variable to read from |
width , height |
the width and height of the map
(see |
expr |
An expression that generates an HTML widget |
env |
The environment in which to evaluate expr |
quoted |
Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable |
Examples
if (interactive()) {
library(shiny)
library(raster)
kili_data <- system.file("extdata", "kiliNDVI.tif", package = "cubeview")
kiliNDVI <- stack(kili_data)
cube = cubeView(kiliNDVI)
ui = fluidPage(
cubeViewOutput("cube", width = 300, height = 300)
)
server = function(input, output, session) {
output$cube <- renderCubeView(cube)
}
shinyApp(ui, server)
}
[Package cubeview version 0.2.0 Index]