forked from hd016/visualize_neural_network_outputs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
94 lines (79 loc) · 2.61 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
library(shiny)
library(shinydashboard)
library(chorddiag)
library(heatmaply)
library(sunburstR)
## ui.R ##
sidebar <- dashboardSidebar(
sidebarMenu(
menuItem("Sunbrust Visualization", tabName = "sunbrust"),
menuItem("Chord Diagram", tabName = "chord"),
menuItem("Confusion Map", tabName = "heat"),
menuItem("Bar Charts", tabName = "bar"))
)
plotvariable <- "plot_objects"
body <- dashboardBody(
tabItems(
tabItem(tabName = "sunbrust",
h2("Sunbrust Visualization"),
fluidRow(
box(
uiOutput("sunburst_auswahl_links"),
sunburstOutput("sunburst", width = "100%", height = "800")),
box(
uiOutput("sunburst_auswahl_rechts"),
sunburstOutput("sunburst2", width = "100%", height = "800"))
),
fluidRow(
box(width = 8, height = 5000,
uiOutput("plots_sunbrust_links")),
box(width = 4, height = 5000,
uiOutput("plotimages_sunburst_links"))
)
),
tabItem(tabName = "chord",
h2("Chord Visualization"),
fluidRow(
column(10, align="center",
uiOutput("chord_auswahl"),
chorddiagOutput("char", width = "1000", height = "1000")
)
)
),
tabItem(tabName = "heat",
h2("Confusion Map"),
fluidRow(
column(10, align="center",
uiOutput("heatmap_auswahl"),
plotlyOutput("heatmap", width = "100%", height="600px")
),
column(10,
verbatimTextOutput("click")
)
),
fluidRow(
box(width = 8, height = 5000,
uiOutput("plots")),
box(width = 4, height = 5000,
uiOutput("plotimages"))
)
),
tabItem(tabName = "bar",
h2("Model comparison"),
fluidRow(
column(10, align="center",
plotlyOutput("barchart_allg", width = "100%", height="600px"),
br(),
verbatimTextOutput("barcklick1"),
br(),
plotlyOutput("barchart_allg2", width = "100%", height="600px")
)))
)
)
# Put them together into a dashboardPage
dashboardPage(
skin="red",
dashboardHeader(title = "Visual Analytics"),
sidebar,
body
)