-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.r
78 lines (61 loc) · 3.03 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
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
library(shiny)
# Define UI for slider demo application
shinyUI(fluidPage(
# Application title
titlePanel("The economic value of environmental data:"),
# fluidRow( column(6,
# plotOutput("plot1"),
# plotOutput("plot2"))),
# Sidebar with sliders that demonstrate various available
# options
sidebarLayout(
sidebarPanel(
fluidRow(column(9,
h5(strong("1000 simulations")))),
# Simple integer interval
sliderInput("rho", "rho:",
min=0.1, max=10, value=0.4, step= 0.1),#,
sliderInput("lambda", "lambda:",
min=0.1, max=2, value=0.15, step= 0.01),
#Decimal interval with step value
sliderInput("sd_Disch", "sd Disch:",
min = 0.2, max = 0.7, value = 0.4, step= 0.1),
# Specification of range within an interval
sliderInput("FM", "Fishing mortality:",
min = 0.02, max = 0.06, value = 0.04, step=0.005),
sliderInput("Rev_CL", "Coverage level for insurance:",
min=50, max=100, value=80, step= 10),
fluidRow( column(12,
plotOutput("plot1"),
plotOutput("plot2")))
#
# # Provide a custom currency format for value display,
# # with basic animation
# sliderInput("format", "Custom Format:",
# min = 0, max = 10000, value = 0, step = 2500,
# format="$#,##0", locale="us", animate=TRUE),
#
# # Animation with custom interval (in ms) to control speed,
# # plus looping
# sliderInput("animation", "Looping Animation:", 1, 2000, 1,
# step = 10, animate=
# animationOptions(interval=300, loop=TRUE))
),
# Show a table summarizing the values entered
mainPanel(
h1(" A notional insurance scheme for the European anchovy",align = "center"),
fluidRow(
column(4, wellPanel(
h5("Parameters", em("rho"), "and", em("sd Disch"),"determines the survival of individuals affected by freshwater discharges from the Guadalquivir River."),
h5("Parameter", em("lambda"),"determines the survival of individuals affected by the wind."),
h5(em("F"), "represents the fishing mortality."),
h5("Coverage level represents a proportion of the average revenue that insurance covers. So if CL is 80% insurance will make up the difference if revenue falls below 80% of the long term average revenue in the fixed F scenario.")
)),
#column(3,tableOutput("values")),
column(3,wellPanel(h5(strong("HCR"), "is a harvest control rule that assumes the fishing mortality constant ignoring the effect of the environment in early survival while",strong("EHCR"),"is an environmentally-sensitive harvest control rule modifiying the fishing mortality according to the observed wind frequency"))),
column(5,tableOutput("values2")),
plotOutput("plot3")
)#end fluidrow,
) #end mainpanel
)
))