leafletClimex: Leaflet interface in the 'climex' app

Description Usage Arguments Details Value Author(s) See Also

Description

Leaflet interface to select stations or visualize spacial information.

Usage

1
2
3
4
5
6
leafletClimex(input, output, session, reactive.chosen, buttonMinMax,
  radioEvdStatistics, sliderYears, reactive.extreme, reactive.fitting,
  sliderThreshold, fit.interactive, cleaning.interactive,
  deseasonalize.interactive, extremes.interactive, selectDataSource,
  checkboxIncompleteYears, checkboxDecluster, selectDeseasonalize,
  sliderBlockLength, selectDataBase, climex.environment)

Arguments

input

Namespace input. For more details check out http://shiny.rstudio.com/articles/modules.html

output

Namespace output.

session

Namespace session.

reactive.chosen

Reactive value containing a list of the list of all provided stations and a data.frame containing the meta data.

buttonMinMax

Character (radio) input determining whether the GEV/GP distribution shall be fitted to the smallest or biggest values. Choices: c( "Max", "Min ), default = "Max".

radioEvdStatistics

Character (radio) input determining whether the GEV or GP distribution shall be fitted to the data. Choices: c( "GEV", "GP" ), default = "GEV".

sliderYears

Numerical (slider) input to determine the minimal length (in years) of the time series to be displayed. Minimal value is 0 and maximal is 155, the default value is 65 and the step width is 1.

reactive.extreme

Reactive value returning a list containing three elements: 1. the blocked time series, 2. the deseasonalized time series, and 3. the pure time series.

reactive.fitting

Reactive value containing the results of the fit (fit.gev or fit.gpd depending on radioEvdStatistic) to the blocked time series in in the first element of the list returned by data.extremes.

sliderThreshold

Numerical (slider) input determining the threshold used within the GP fit and the extraction of the extreme events. Boundaries: minimal and maximal value of the deseasonalized time series (rounded). Default: 0.8* the upper end point.

fit.interactive

Function used to perform the actual GEV/GP fit. fit.interactive

cleaning.interactive

Function used to remove incomplete years from blocked time series or to remove clusters from data above a certain threshold. cleaning.interactive

deseasonalize.interactive

Function used to remove seasonality from a given time series. deseasonalize.interactive

extremes.interactive

Function used to split a time series into blocks of equal lengths and to just extract their maximal values or to extract all data points above a certain threshold value. Which option is chosen depends of the radioEvdStatistic. See extremes.interactive.

selectDataSource

Menu output in the sidebar. Since this function should only be triggered when selectDataBase equals "Input", this input will be a character string describing the selected station's name.

checkboxIncompleteYears

Logical (checkbox) input determining whether to remove all incomplete years of a time series. This box will be only available if radioEvdStatistics equals "GEV" and else will be NULL.

checkboxDecluster

Logical (checkbox) input determining whether to remove all clusters in a time series and replace them by their maximal value. This box will be only available if radioEvdStatistics equals "GP" and else will be NULL.

selectDeseasonalize

Character (select) input determining which deseasonalization method should be used to remove the short-range correlations from the provided time series. deseasonalizeSelectionInput

sliderBlockLength

Numerical (slider) input determining the block length used in the GEV flavor of extreme value theory. On default it is set to one year.

selectDataBase

Character (select) input to determine the data source. It is either of one of the names of the provided list in the list.data.sources argument of the climex function or Artificial data. In case of the latter choice, the function data.selection will provide a reactive object containing random numbers drawn from the distribution specified using radioEvdStatistics. Default = a random element of the provided input.

climex.environment

Environment containing the global variables used within the climex app. Namely the last values displayed in the table and the lists containing the station data.

Details

This module provides an interactive map to display the locations of the individual stations. The user can choose individual stations by clicking at them. In addition a dialog will pop up telling the stations name, the length of the time series, and the 20, 50, and 100 year return level calculated with the setting in the basic map without station positions select only those stations in Germany with a certain minimum number of years.

Value

Reactive value holding the selected station.

Author(s)

Philipp Mueller

See Also

Other leaflet: data.chosen, leafletClimexUI


theGreatWhiteShark/climexUI documentation built on May 22, 2019, 2:25 p.m.