-
Notifications
You must be signed in to change notification settings - Fork 2
/
Functions.R
114 lines (87 loc) · 2.5 KB
/
Functions.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
###########PACKAGES###################
library(devtools)
# Need for running Shiny apps
library(shiny)
# Design
library(shinydashboard)
library(shinythemes)
# devtools::install_github("paulc91/shinyauthr")
library(shinyauthr)
# Use Java Script
library(shinyjs)
library(shinyBS)
require(V8)
# For table formatting
library(DT)
library(kableExtra)
library(formattable)
#Piping/operators which promote semantics
library(magrittr)
library(dplyr)
library(tidyr)
library(tidyverse)
library(glue)
#Plotting
library(ggplot2)
#RMarkdown documents for reports
library(knitr)
library(markdown) # #https://stackoverflow.com/questions/33499651/rmarkdown-in-shiny-application
# install.packages("extrafont")
library(extrafont)
# loadfonts()
# extrafont::font_import()
#windowsFonts()
licence0 <- "Software code created by U.S. Government employees is not subject to copyright in the United States (17 U.S.C. §105). The United States/Department of Commerce reserve all rights to seek and obtain copyright protection in countries other than the United States for Software authored in its entirety by the Department of Commerce. To this end, the Department of Commerce hereby grants to Recipient a royalty-free, nonexclusive license to use, copy, and create derivative works of the Software outside of the United States."
########COLORS#########
NOAAFisheries.Colors<-list(
Oceans = list(
"Process Blue" = "#0093D0",
"Reflex Blue" = "#0055A4", #Nav Bar Hover
"PMS 541" = "#00467F", # Nav Bar
"White" = "#FFFFFF"
),
Waves = list(
"PMS 319" = "#1ECAD3",
"PMS 321" = "#008998",
"PMS 322" = "#00708",
"Gray 10%" = "#E8E8E8"
),
Seagrass = list(
"PMS 375" = "#93D500",
"PMS 362" = "#4C9C2E",
"PMS 322" = "#007078",
"Gray 20%" = "#D0D0D0"
),
Urchin = list(
"Custom" = "#7F7FFF",
"PMS 2725" = "#625BC4",
"PMS 7670" = "#575195",
"Gray 40%" = "#9A9A9A"
),
Crustacean = list(
"PMS 151" = "#FF8300",
"PMS 717" = "#D65F00",
"PMS 7670" = "#575195",
"Gray 50%" = "#7B7B7B"
),
Coral = list(
"Warm Red" = "#FF4438",
"PMS 711" = "D02C2F",
"PMS 1805" = "#B2292E",
"Gray 70%" = "#646464"
),
"NOAA Colors" = list(
#Primary Colors
"REFLEX BLUE" = "#0A4595",
"PROCESS BLUE" = "#0099D8",
"DARK SLATE GREY" = "#333333",
"WHITE" = "#FFFFFF",
#Secondary Colors
"DARK GREY" = "#575757",
"MEDIUM GREY" = "#666666",
"LIGHT GREY" = "#ACACAC",
"FADED BLUE" = "#6B84B4",
"RICH BLUE GREY" = "#28282A"
)
)
NOAA.Fonts<-"Proxima Nova"