A list a functions to support the Flomvarsling 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, tidyverse

Suggests

testthat, packagedocs

r suppressWarnings(suppressMessages( library(FlomvarslingApp, quietly = TRUE, warn.conflicts = FALSE, verbose = FALSE ) ))

Package Functions

dygraph_mod

dygraph_mod

This was an attempt to modularize Bymans functions. Server module. May not work...

Usage

dygraph_mod(input, output, session, selected_stations, model_1, model_2, model_3, model_4 = NULL)

Arguments

input
This was an attempt to modularize Bymans functions. Server module. May not work...
output
This was an attempt to modularize Bymans functions. Server module. May not work...
session
This was an attempt to modularize Bymans functions. Server module. May not work...
selected_stations
This was an attempt to modularize Bymans functions. Server module. May not work...
model_1
This was an attempt to modularize Bymans functions. Server module. May not work...
model_2
This was an attempt to modularize Bymans functions. Server module. May not work...
model_3
This was an attempt to modularize Bymans functions. Server module. May not work...
model_4
This was an attempt to modularize Bymans functions. Server module. May not work...

dygraph_mod2

dygraph_mod2

This was an attempt to modularize Bymans functions. Server module. May not work...

Usage

dygraph_mod2(input, output, session, selected_stations, model_1, model_2, model_3, model_4 = NULL)

Arguments

input
This was an attempt to modularize Bymans functions. Server module. May not work...
output
This was an attempt to modularize Bymans functions. Server module. May not work...
session
This was an attempt to modularize Bymans functions. Server module. May not work...
selected_stations
This was an attempt to modularize Bymans functions. Server module. May not work...
model_1
This was an attempt to modularize Bymans functions. Server module. May not work...
model_2
This was an attempt to modularize Bymans functions. Server module. May not work...
model_3
This was an attempt to modularize Bymans functions. Server module. May not work...
model_4
This was an attempt to modularize Bymans functions. Server module. May not work...

dygraph_modUI

dygraph_modUI

This was an attempt to modularize Bymans functions. UI module to be used with "dygraph_mod". May not work...

Usage

dygraph_modUI(id)

Arguments

id
This was an attempt to modularize Bymans functions. UI module to be used with "dygraph_mod". May not work...

forecast_plot

forecast_plot

Usage

forecast_plot(dat)

Arguments

dat

forecast_plot_mod

forecast_plot_mod

Shiny server module to plot ...

Usage

forecast_plot_mod(input, output, session, map_input, dat)

Arguments

input
Shiny server module to plot ...
output
Shiny server module to plot ...
session
Shiny server module to plot ...
map_input
Shiny server module to plot ...
dat
Shiny server module to plot ...

forecast_plot_mod_shading

forecast_plot_mod_shading

Shiny server module to plot ... Same plot as forecast_plot_mod but without plotly to get the shading for the current day

Usage

forecast_plot_mod_shading(input, output, session, map_input, dat)

Arguments

id
Shiny server module to plot ... Same plot as forecast_plot_mod but without plotly to get the shading for the current day

forecast_plot_mod_shadingUI

forecast_plot_mod_shadingUI

Shiny UI module to be used with "forecast_plot_mod_shading"

Usage

forecast_plot_mod_shadingUI(id)

Arguments

id
Shiny UI module to be used with "forecast_plot_mod_shading"

forecast_plot_modUI

forecast_plot_modUI

Shiny UI module to plot ...

Usage

forecast_plot_modUI(id)

Arguments

id
Shiny UI module to plot ...

forecast_plot_shading

forecast_plot_shading

This function only produces "static" ggplot for the moment, but I need to find a way to do the shading with plotly

Usage

forecast_plot_shading(dat)

Arguments

dat
This function only produces "static" ggplot for the moment, but I need to find a way to do the shading with plotly

Examples

# forecast_plot_shading(Mistake, Mist)
# This is dummy example

mapModule

mapModule

Shiny server module to map ...

Usage

mapModule(input, output, session)

Arguments

input
Shiny server module to map ...
output
Shiny server module to map ...
session
Shiny server module to map ...

mapModule_polygonFeature

mapModule_polygonFeature

Shiny server module to map ...

Usage

mapModule_polygonFeature(input, output, session)

Arguments

input
Shiny server module to map ...
output
Shiny server module to map ...
session
Shiny server module to map ...

mapModule_polygonFeatureUI

mapModule_polygonFeatureUI

Shiny UI module to be used with "mapModule_polygonFeature" ...

Usage

mapModule_polygonFeatureUI(id)

Arguments

id
Shiny UI module to be used with "mapModule_polygonFeature" ...

mapModuleUI

mapModuleUI

Shiny UI module to be used with "mapModule" ...

Usage

mapModuleUI(id, multiple_choice = FALSE)

Arguments

id
Shiny UI module to be used with "mapModule" ...
multiple_choice
Shiny UI module to be used with "mapModule" ...

multimod_forecast_plot

multimod_forecast_plot

Usage

multimod_forecast_plot(dat_1 = NULL, dat_2 = NULL, dat_3 = NULL, dat_4 = NULL, return_levels = NULL, gg_plot = FALSE)

Arguments

dat_1
dat_2
dat_3
dat_4
return_levels
gg_plot

multimod_forecast_plot_EXP

multimod_forecast_plot_EXP

Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot

Usage

multimod_forecast_plot_EXP(dat_1 = NULL, dat_2 = NULL, dat_3 = NULL, dat_4 = NULL)
multimod_forecast_plot_EXP(dat_1 = NULL, dat_2 = NULL, dat_3 = NULL, dat_4 = NULL)

Arguments

dat_1
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
dat_2
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
dat_3
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
dat_4
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
input
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
output
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
session
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
selected_stations
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
model_1
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
model_2
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
model_3
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot
model_4
Shiny server module to do multi-model plots. Needs tidy up with other functions... To tidy up probable double up with multimod_forecast_plot

multimod_forecast_plot_mod

multimod_forecast_plot_mod

Shiny server module to do multi-model plots. Needs new parametrization!

Usage

multimod_forecast_plot_mod(input, output, session, map_input, model_1, model_2, model_3, model_4, return_levels = NULL)

Arguments

input
Shiny server module to do multi-model plots. Needs new parametrization!
output
Shiny server module to do multi-model plots. Needs new parametrization!
session
Shiny server module to do multi-model plots. Needs new parametrization!
map_input
Shiny server module to do multi-model plots. Needs new parametrization!
model_1
Shiny server module to do multi-model plots. Needs new parametrization!
model_2
Shiny server module to do multi-model plots. Needs new parametrization!
model_3
Shiny server module to do multi-model plots. Needs new parametrization!
model_4
Shiny server module to do multi-model plots. Needs new parametrization!
return_levels
Shiny server module to do multi-model plots. Needs new parametrization!

multimod_forecast_plot_modUI

multimod_forecast_plot_modUI

Shiny UI module to be used with multimod_forecast_plot

Usage

multimod_forecast_plot_modUI(id)

Arguments

id
Shiny UI module to be used with multimod_forecast_plot

multimod_forecast_selection_modUI

multimod_forecast_selection_modUI

Shiny UI module...

Usage

multimod_forecast_selection_modUI(id)

Arguments

id
Shiny UI module...

multiple_station_map

multiple_station_map

mapping function

Usage

multiple_station_map(stations, selected_regine_main = NULL, selected_name = NULL, selected_long = NULL, selected_lat = NULL, single_poly = FALSE, variable2plot = "none", radius_function = TRUE, popups = FALSE)

Arguments

stations
mapping function
selected_regine_main
mapping function
selected_name
mapping function
selected_long
mapping function
selected_lat
mapping function
single_poly
mapping function
variable2plot
mapping function
radius_function
mapping function
popups
mapping function

mydygraphModule

mydygraphModule

This was an attempt to modularize Bymans functions. Server module. May not work...

Usage

mydygraphModule(input, output, session)

Arguments

input
This was an attempt to modularize Bymans functions. Server module. May not work...
output
This was an attempt to modularize Bymans functions. Server module. May not work...
session
This was an attempt to modularize Bymans functions. Server module. May not work...

mydygraphModuleUI

mydygraphModuleUI

This was an attempt to modularize Bymans functions. UI module to be used with "mydygraphModule". May not work...

Usage

mydygraphModuleUI(id)

Arguments

id
This was an attempt to modularize Bymans functions. UI module to be used with "mydygraphModule". May not work...

NEW_mapModule_polygonFeature

NEW_mapModule_polygonFeature

Shiny server module to map... TO tidy up with mapModule_polygonFeature

Usage

NEW_mapModule_polygonFeature(input, output, session)

Arguments

input
Shiny server module to map... TO tidy up with mapModule_polygonFeature
output
Shiny server module to map... TO tidy up with mapModule_polygonFeature
session
Shiny server module to map... TO tidy up with mapModule_polygonFeature

NEW_mapModule_polygonFeatureUI

NEW_mapModule_polygonFeatureUI

Shiny UI module to be used with "NEW_mapModule_polygonFeature"

Usage

NEW_mapModule_polygonFeatureUI(id)

Arguments

id
Shiny UI module to be used with "NEW_mapModule_polygonFeature"

OLD_forecast_plot_modUI

OLD_forecast_plot_modUI

Shiny UI module to plot ...

Usage

OLD_forecast_plot_modUI(id)

Arguments

id
Shiny UI module to plot ...

OLD_mapModule_polygonFeature

OLD_mapModule_polygonFeature

Shiny server module to map... TO tidy up with mapModule_polygonFeature

Usage

OLD_mapModule_polygonFeature(input, output, session)

Arguments

input
Shiny server module to map... TO tidy up with mapModule_polygonFeature
output
Shiny server module to map... TO tidy up with mapModule_polygonFeature
session
Shiny server module to map... TO tidy up with mapModule_polygonFeature

OLD_mapModule_polygonFeatureUI

OLD_mapModule_polygonFeatureUI

Shiny UI module to be used with "OLD_mapModule_polygonFeature"

Usage

OLD_mapModule_polygonFeatureUI(id)

Arguments

id
Shiny UI module to be used with "OLD_mapModule_polygonFeature"

OLD_multimod_forecast_plot

OLD_multimod_forecast_plot

Shiny server module to do multi-model plots. Needs tidy up with previous function

Usage

OLD_multimod_forecast_plot(input, output, session, selected_stations = NULL, model_1, model_2, model_3, model_4, return_levels = NULL, variable_1, variable_2, variable_3, variable_4, type_rl)

Arguments

input
Shiny server module to do multi-model plots. Needs tidy up with previous function
output
Shiny server module to do multi-model plots. Needs tidy up with previous function
session
Shiny server module to do multi-model plots. Needs tidy up with previous function
selected_stations
Shiny server module to do multi-model plots. Needs tidy up with previous function
model_1
Shiny server module to do multi-model plots. Needs tidy up with previous function
model_2
Shiny server module to do multi-model plots. Needs tidy up with previous function
model_3
Shiny server module to do multi-model plots. Needs tidy up with previous function
model_4
Shiny server module to do multi-model plots. Needs tidy up with previous function
return_levels
Shiny server module to do multi-model plots. Needs tidy up with previous function
variable_1
Shiny server module to do multi-model plots. Needs tidy up with previous function
variable_2
Shiny server module to do multi-model plots. Needs tidy up with previous function
variable_3
Shiny server module to do multi-model plots. Needs tidy up with previous function
variable_4
Shiny server module to do multi-model plots. Needs tidy up with previous function
type_rl
Shiny server module to do multi-model plots. Needs tidy up with previous function

single_station_map

single_station_map

mapping function

Usage

single_station_map(stations, selected_nbname = NULL, selected_long = NULL, selected_lat = NULL, variable2plot = "none", map_layer = "open streetmap", catchments = FALSE, colored_markers = FALSE, radius_function = TRUE, popups = FALSE)

Arguments

stations
mapping function
selected_nbname
mapping function
selected_long
mapping function
selected_lat
mapping function
variable2plot
mapping function
map_layer
mapping function
catchments
mapping function
colored_markers
mapping function
radius_function
mapping function
popups
mapping function

table_mod

table_mod

Shiny server module to render data tables

Usage

table_mod(input, output, session, dat)

Arguments

input
Shiny server module to render data tables
output
Shiny server module to render data tables
session
Shiny server module to render data tables
dat
Shiny server module to render data tables

table_modUI

table_modUI

Shiny UI module to be used with table_mod

Usage

table_modUI(id)

Arguments

id
Shiny UI module to be used with table_mod

taylor_mod

taylor_mod

This was an attempt to modularize Bymans functions. Server module. May not work...

Usage

taylor_mod(input, output, session, selected_stations, model_1, model_2, model_3, model_4 = NULL)

Arguments

input
This was an attempt to modularize Bymans functions. Server module. May not work...
output
This was an attempt to modularize Bymans functions. Server module. May not work...
session
This was an attempt to modularize Bymans functions. Server module. May not work...
selected_stations
This was an attempt to modularize Bymans functions. Server module. May not work...
model_1
This was an attempt to modularize Bymans functions. Server module. May not work...
model_2
This was an attempt to modularize Bymans functions. Server module. May not work...
model_3
This was an attempt to modularize Bymans functions. Server module. May not work...
model_4
This was an attempt to modularize Bymans functions. Server module. May not work...

taylor_modUI

taylor_modUI

This was an attempt to modularize Bymans functions. UI module to be used with "taylor_mod". May not work...

Usage

taylor_modUI(id)

Arguments

id
This was an attempt to modularize Bymans functions. UI module to be used with "taylor_mod". May not work...

which_station_in_polygon

which_station_in_polygon

Sub-function use to find which stations are in the polygon the user has drawn

Usage

which_station_in_polygon(stations, map_selection)

Arguments

stations
Sub-function use to find which stations are in the polygon the user has drawn
map_selection
Sub-function use to find which stations are in the polygon the user has drawn


NVE/Flood_forecasting documentation built on May 7, 2019, 6:04 p.m.