-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathglobal.R
47 lines (37 loc) · 1.38 KB
/
global.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Packages -----------------------------------------------
library(shiny)
library(DBI)
library(RPostgreSQL)
#library(jsonlite)
library(sf)
#library(leaflet)
library(ggplot2)
# Disable scientific notation
options(scipen = 999)
# Global variables ---------------------------------------
# Initial query values - default
qryVal.df <- data.frame('thresholdPoints' = 200000,
'dateFrom' = "2012-05-08",
'dateUntil' = "2014-05-17",
'searchVesselName' = "ALDEBARAN I",
'vesselSpeedMin' = 0,
'vesselSpeedMax' = 15,
'catA' = FALSE,
'catB' = FALSE,
'catC' = FALSE,
'catD' = FALSE,
'catAltura' = FALSE,
'catCosteros' = FALSE)
# Initial config values for heatmap - default
config.df <- data.frame('opacity' = 0.8,
'radius' = 1,
'colorGradient' = "gradient: {0.4:'blue',0.6:'cyan',0.7:'lime',0.8:'yellow',1:'red'}",
'blur' = 1)
# Query values - customization
qryValCustom.df <- qryVal.df
# Config values - customization
configCustom.df <- config.df
# Empty df to push data from DB
positionsQry.df <- data.frame()
# Shapefiles
# limitesURY <- read_sf("data/shp/c100Polygon.shp")