-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
66 lines (44 loc) · 2.25 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
## UI for Shiny App
library(shiny)
library(ggplot2)
ui <- fluidPage(
fluidRow(
tags$br()
),
fluidRow(column(width = 2, selectInput(inputId = "typeOfTrafficking", label = "Known Trafficking Type (Percent)",
choices = c("SexualExploit", "ForcedLabour", "SexAndLabour",
"ForcedMarriage", "OtherExploit"))),
column(width = 10, plotOutput(outputId = "typeBar"))
),
fluidRow(
tags$br()
),
fluidRow(column(width = 2, sliderInput(inputId = "year",
"Year (1990-2011)", value = 1990, min = 1990, max = 2011, step = 1, sep = "")),
column(width = 10, plotOutput(outputId = "adv_scatter"))
),
fluidRow(
tags$br()
),
fluidRow(column(width = 2, selectInput(inputId = "meansOfControl", label = "X Axis: Means of Control (Percent)",
choices = c("DebtBondage", "TakesEarnings", "RestrictsFinancialAccess",
"Threats", "PsychologicalAbuse", "PhysicalAbuse", "SexualAbuse",
"FalsePromises", "PsychoactiveSubstances", "RestrictsMovement",
"RestrictsMedicalCare", "ExcessiveWorkingHours", "UsesChildren",
"ThreatOfLawEnforcement", "WithholdsNecessities", "WithholdsDocuments",
"Other", "NotSpecified")),
selectInput(inputId = "typeOfLabour", label = "Y Axis: Type of Labour (Percent)",
choices = c("Agriculture", "Aquafarming", "Begging", "Construction",
"DomesticWork", "Hospitality", "IllicitActivities",
"Manufacturing", "MiningOrDrilling", "Peddling",
"Transportation", "Other", "NotSpecified"))),
column(width = 10, plotOutput(outputId = "scatter"))
),
fluidRow(
tags$br()
),
fluidRow(column(width = 2, selectInput(inputId = "recruiterRelation", label = "Recruiter Relationship (Percent)",
choices = c("IntimatePartner", "Friend", "Family", "Other", "Unknown"))),
column(width = 10, plotOutput(outputId = "relationBar"))
)
)