-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
56 lines (56 loc) · 1.74 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
shinyUI(
pageWithSidebar(
headerPanel("Singular Value Decomposition"),
sidebarPanel(
fileInput('file','Upload a JPEG Image',accept = 'image/jpeg'),
h5('OR'),
selectInput("imagename", "Select an image:", list.files(path="./Data",pattern="\\.jpg"),selected='Flower.jpg'),
#'JPG$'
uiOutput('dynamicslider'),#####
h4('Variance retained'),
verbatimTextOutput("var"),
#hr(),
h4('Image Size in memory'),
verbatimTextOutput('sizem'),
h4('Image Dimensions'),
verbatimTextOutput("dim"),
h4('Image Size'),
verbatimTextOutput('size')
),
mainPanel(
tabsetPanel(
tabPanel('Image',
h4('Image after reconstruction'),
fluidRow(
column(2,
uiOutput("finimg")
),
column(2,offset = 6,
downloadButton('downloadData', 'Save As')
)
),
h4('Original Image'),
imageOutput("origimg")
),
tabPanel('Variance',
h4('Variance explained'),
imageOutput("imgr"),
br(),
br(),
br(),
br(),
imageOutput("imgg"),
br(),
br(),
br(),
br(),
imageOutput("imgb")
),
tabPanel('Documentation',
h3('What does this App do'),
textOutput('help'),
h3("Source Code (server.R and ui.R):",br(), a(" Github", href="https://github.com/hammad7/dataprod")))
)
)
)
)