-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
68 lines (64 loc) · 1.72 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
# Load packages -----------------------------------------------------------
packs <- c('shiny','datasets',"lubridate",'plotly')
InstIfNec<-function (pack) {
if (!do.call(require,as.list(pack))) {
do.call(install.packages,as.list(pack)) }
do.call(require,as.list(pack)) }
lapply(packs, InstIfNec)
library(shiny)
shinyUI(fluidPage(
fluidRow(
column(12,wellPanel(
titlePanel("Fitting Farquhar parameters")
))
),
fluidRow(
column(5, wellPanel(
fileInput('file1', 'Choose CSV File',
accept=c('text/csv',
'text/comma-separated-values,text/plain',
'.csv')),
selectInput("type", "Type of response curve:", choices = c("CO2 curve", "Light curve")),
tags$hr(),
uiOutput("leaf"),
tags$hr(),
uiOutput('ui.action'))
),
column(7, wellPanel(
tableOutput("tab"),
downloadButton("downloadData", "Download")
))
),
fluidRow(
column(12,wellPanel(
plotlyOutput('plot')
))
)
))
# shinyUI(
# fluidPage(
# fluidRow(
# column(12,wellPanel(
# titlePanel("Fitting Farquhar parameters")
# ))
# ),
# fluidRow(
# column(6, wellPanel(
# selectInput("type", "Choose a type curve:", choices = c("CO2 curve", "Light curve")),
# fileInput('dataInput', 'Import the data file (.csv)',
# accept=c('text/csv',
# 'text/comma-separated-values,text/plain',
# '.csv'))
# )),
# column(6, wellPanel(
# tableOutput("contents"),
# tableOutput("tab")
# ))
# ),
# fluidRow(
# column(12,wellPanel(
# plotOutput("graph1")
# ))
# )
# )
# )