A list a functions to support the FlomKart Shiny app

Authors: Florian Kobierska Baffie [aut, cre]

Version: 0.1

License: see license.md

Description

This package was developed for the FlomKart project. It contains functions used by the shiny app

Imports

leaflet, magrittr, evd, nsRFA, stats

Suggests

testthat, packagedocs

Package Functions

histo4param_values

histo4param_values

Histogram to go with the parameter mapping

Usage

histo4param_values(distr, method, param)

Arguments

distr
Histogram to go with the parameter mapping
method
Histogram to go with the parameter mapping
param
Histogram to go with the parameter mapping

norway_map4groups

norway_map4groups

Usage

norway_map4groups(group.index)

Arguments

group.index

norway_map4groups_tab1

norway_map4groups_tab1

quick hack TO FINISH

Usage

norway_map4groups_tab1(group.index)

Arguments

group.index
quick hack TO FINISH

norway_map4param_values

norway_map4param_values

Function to map the fitted parameter values as color scale for each station

Usage

norway_map4param_values(distr, method, param)

Arguments

distr
Function to map the fitted parameter values as color scale for each station
method
Function to map the fitted parameter values as color scale for each station
param
Function to map the fitted parameter values as color scale for each station

norway_map4server

norway_map4server

MAP OF NORWAY WITH COLOR CHANGING ACCORDING TO THE NUMBER OF DATA.

Usage

norway_map4server(selected.station)

Arguments

selected.station
MAP OF NORWAY WITH COLOR CHANGING ACCORDING TO THE NUMBER OF DATA.

plot4server

plot4server

plot fitted probability density function to estimated empirical pdf

Usage

plot4server(dat, param, distr.index = 1)

Arguments

dat
plot fitted probability density function to estimated empirical pdf
param
plot fitted probability density function to estimated empirical pdf
distr.index
plot fitted probability density function to estimated empirical pdf

Value

Returns nothing else than a plot, saves nothing

plot4server_cdf

plot4server_cdf

Plot estimated and empirical cumulative distribution function

Usage

plot4server_cdf(dat, param, distr = 1)

Arguments

dat
Plot estimated and empirical cumulative distribution function
param
Plot estimated and empirical cumulative distribution function
distr
Plot estimated and empirical cumulative distribution function

Value

Returns nothing else than a plot, saves nothing

plot4server_gof

plot4server_gof

Usage

plot4server_gof(station, gof)

Arguments

station
gof

plot4server_gof.rlevels

plot4server_gof.rlevels

Usage

plot4server_gof.rlevels(station, gof, r.period, quantile)

Arguments

station
gof
r.period
quantile

plot4server_gof_averaged

plot4server_gof_averaged

function like plot4server_gof but averaging over all stations filling the min/max years criteria

Usage

plot4server_gof_averaged(gof, min_years, max_years, stations2ave = stations2average(min_years, max_years))

Arguments

gof
function like plot4server_gof but averaging over all stations filling the min/max years criteria
min_years
function like plot4server_gof but averaging over all stations filling the min/max years criteria
max_years
function like plot4server_gof but averaging over all stations filling the min/max years criteria

plot4server_nt

plot4server_nt

NT is plotted differently than the other r.levels indices because it doens’t have the extra “few_quantiles” dimension

Usage

plot4server_nt(station, gof, r.period)

Arguments

station
NT is plotted differently than the other r.levels indices because it doens’t have the extra “few_quantiles” dimension
gof
NT is plotted differently than the other r.levels indices because it doens’t have the extra “few_quantiles” dimension
r.period
NT is plotted differently than the other r.levels indices because it doens’t have the extra “few_quantiles” dimension

plot4server_qq

plot4server_qq

QQ plot of empiricial against modelled

Usage

plot4server_qq(dat, param, distr = 1)

Arguments

dat
QQ plot of empiricial against modelled
param
QQ plot of empiricial against modelled
distr
QQ plot of empiricial against modelled

Value

Returns nothing else than a plot else than a plot, saves nothing

plot4server_QSBS_ave

plot4server_QSBS_ave

Usage

plot4server_QSBS_ave(gof, r.period, min_years, max_years, stations2ave = stations2average(min_years, max_years))

Arguments

gof
r.period
min_years
max_years
stations2ave

plot4server_rlevel

plot4server_rlevel

Plots return levels

Usage

plot4server_rlevel(dat, param, distr.index = 1)

Arguments

dat
Plots return levels
param
Plots return levels
distr.index
Plots return levels

Value

Returns nothing else than a plot, saves nothing

plot4server_rlevels_coeffvar

plot4server_rlevels_coeffvar

Plotting the coefficient of variation of return levels

Usage

plot4server_rlevels_coeffvar(station, gof, r.period)

Arguments

station
Plotting the coefficient of variation of return levels
gof
Plotting the coefficient of variation of return levels
r.period
Plotting the coefficient of variation of return levels

plot4server_rlevels_coeffvar_ave

plot4server_rlevels_coeffvar_ave

Usage

plot4server_rlevels_coeffvar_ave(gof, r.period, min_years, max_years, stations2ave = stations2average(min_years, max_years))

Arguments

gof
r.period
min_years
max_years

qdata_barplot

qdata_barplot

Usage

qdata_barplot(station_nb)

Arguments

station_nb

qdata_barplot_OLD

qdata_barplot_OLD

Usage

qdata_barplot_OLD(min_years, max_years, min_height, max_height)

Arguments

min_years
max_years
min_height
max_height

qdata_boxplot

qdata_boxplot

Usage

qdata_boxplot(station_nb)

Arguments

station_nb

qdata_boxplot_OLD

qdata_boxplot_OLD

Usage

qdata_boxplot_OLD(min_years, max_years, min_height, max_height)

Arguments

min_years
max_years
min_height
max_height