A shiny module showing the values from a raster in time on a predefined map. Allows changing polygons and rasters via slider. Additionally, a histogram summary for each raster choice is shown.
rastersOverTimeUI(id) rastersOverTime(input, output, session, rctRasterList, rctUrlTemplate, rctPolygonList, rctChosenPolyName, defaultPolyName = NULL, map = leaflet(), mapTilesDir = "www/", colorPalette, histTitle = "", sliderTitle = "", mapTitle = "", nPolygons, nRasters, rasterStepSize = 10)
id | An id string that corresponds with the id used to call the module's UI function. |
---|---|
input | shiny server input object |
output | shiny server output object |
session | shiny server session object |
rctRasterList | A reactive that gives a list of rasters to be displayed. |
rctUrlTemplate | The reactive url template for leaflet map tiles |
rctPolygonList | Reactive list with sets of polygons to be displayed on a leaflet map. # TODO: describe the format of the list! |
rctChosenPolyName | Reactive containing the name of the selected polygon (character). |
defaultPolyName | The name of the default selected polygon. |
map | Leaflet map to show raster and polygons on. |
mapTilesDir | Directory where pre-generated map tiles are stored
(default |
colorPalette | Colour palette to use. |
histTitle | Title to be shown above the histogram. |
sliderTitle | Title to be shown above the slider. |
mapTitle | Title to be shown above the map. |
nPolygons | The number of available polygons. |
nRasters | The number of available rasters. |
rasterStepSize | Size of step in the raster slider. |
None. Invoked for the side-effect of creating a shiny UI.
Reactive polygon selected by the user with the polygonChooser
module.
Invoked for the side-effect of creating shiny server and UI components.