-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.r
43 lines (38 loc) · 1.39 KB
/
ui.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
# Load required libraries
pacman::p_load(shiny, tidyverse, ggplot2, leaflet,sf,rnaturalearth,httr)
# Load your data (replace this with your actual data loading code)
populations_LUT <- read_csv("results/populations_LUT.csv") %>%
dplyr::rename(Population = ESA_Population_Name)
indicators <- read_csv("results/indicators_by_NOAA_pop.csv") %>%
dplyr::rename(Population = ESA_Population_Name) %>%
left_join(populations_LUT)
ui = fluidPage(
# Title
titlePanel("Lower Columbia Salmon Indicator Dashboard"),
#logo
fluidRow(
column(12, align = "left",
img(src = "https://privatelands.wdfw.wa.gov/wdfwlogo_clrnotxt.png", height = "160px")
)
),
# Shiny UI components
selectInput("Species", "Select Species", choices = c("None", unique(indicators$Species)), multiple = FALSE),
selectInput("Run", "Select Run", choices = c("None", unique(indicators$Run)), multiple = FALSE),
selectInput("Population", "Select Population", choices = c("None", unique(indicators$Population)), multiple = FALSE),
downloadButton("downloadData", "Download Data"),
tags$style("
#downloadButton {
clear: both;
}
#plot {
float: left;
}
#range_map {
float: right;
}
"),
#placeholder for the plot
plotOutput("plot", width = "66%", height = "600px"),
# This creates a placeholder for the ,map
plotOutput("range_map", width = "33%", height = "600px")
)