-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
168 lines (153 loc) · 5.08 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# User-interface for Comic Book Character Diversity
library(shiny)
library(plotly)
library(ggplot2)
source("./script/chart_year_sexualMinority.R")
source("./script/introduction.R")
source('./script/GenderID.R')
source("./script/gender_characteristics.R")
source('./script/gender_vs_mortality.R')
shinyUI(
navbarPage(
"Marvel Character Gender Diversity",
# Introduction Tab
tabPanel("Introduction",
fluidPage(
titlePanel("Introduction: Gender Studies Within Marvel's Cinematic Universe"),
mainPanel(h3(Intro()),
h3(AudienceQuestions()))
)),
# GSM and LGBT Tab
tabPanel("LGBT Community",
fluidPage(
titlePanel("Comic Characters in the LGBT Community"),
# Sidebar with drop-down box widget, select gender
sidebarLayout(sidebarPanel(
selectInput(
"gender",
"Gender:",
choices = list(
"All" = "***",
"Female" = "Female Characters",
"Male" = "Male Characters",
"Agender" = "Agender Characters"
)
)
),
mainPanel(
tabsetPanel(
type = "tabs",
tabPanel("Intro",
h2("Introduction:"),
h4(GSMintro())),
tabPanel("Graph",
plotlyOutput("year_gsm")),
tabPanel("Table",
tableOutput("table_gsm")),
tabPanel("Summary",
h2("Summary:"),
h4(GSMoutro()))
)
))
)),
# Gender Characteristics Tabs
tabPanel(
"Gender Characteristics",
fluidPage(
# Application title
titlePanel("Gender vs Characteristic"),
# Sidebar with radio button widget, select a characteristic type
sidebarLayout(sidebarPanel(
radioButtons(
"char",
"Characteristic type:",
c(
"Good Character" = "Good",
"Bad Character" = "Bad",
"Neutral Character" = "Neutral"
)
)
),
# Show a tabset that includes a plot, summary, and table view
# of the generated distribution
mainPanel(
tabsetPanel(
type = "tabs",
tabPanel("Intro", h2("Introduction:"), h4(GC_Intro())),
tabPanel("Plot", plotOutput("circularPlot")),
tabPanel(
"Summary",
h2("Summary Table"),
tableOutput("table"),
h2("Summary:"),
h4(GC_Summary())
)
)
))
)
),
# Identification and Gender
tabPanel(
"Gender and Identification",
fluidPage(
# Application title
titlePanel("Gender vs Identification"),
sidebarLayout(sidebarPanel(
radioButtons(
"user",
"Identification type:",
list(
"Secret Identity" = "Secret",
"Public Identity" = "Public",
"No Dual Identity" = "None",
"Known to Authorities Identity" = "Known"
)
)
),
mainPanel(
tabsetPanel(
type = "tabs",
tabPanel("Intro", h2("Introduction:"), h4(ID_Intro())),
tabPanel("Plot", plotOutput('circlePlot')),
tabPanel("Summary", h2("Summary:"), h4(ID_Summary()))
)
))
)
),
# Gender vs Morality
tabPanel("Gender Mortality",
fluidPage(
titlePanel("Gender Comparisons of Mortality Rates"),
sidebarLayout(sidebarPanel(
selectInput(
inputId = "gendermort",
label = "Gender:",
choices = list(
"Male" = "Male Characters",
"Female" = "Female Characters",
"Agender" =
"Agender Characters",
"Genderfluid" = "Genderfluid Characters",
"All" = "***"
),
selected = "All"
)
),
mainPanel(
tabsetPanel(
type = "tabs",
tabPanel(
"Dataset",
h2("Introduction"),
h4(
"Visualizing the percentages of living and deceased characters between genders."
),
plotlyOutput("genderMortality")
),
tabPanel("Conclusion",
h2("Conclusions Drawn:"),
GMConcl())
)
))
))
))