|
| 1 | +#runApp('C:\\Users\\pbuttigi\\Documents\\Revolution\\EATME\\RDA', launch.browser = FALSE) |
| 2 | + |
| 3 | +library(shiny) |
| 4 | +library(markdown) |
| 5 | + |
| 6 | +shinyUI( |
| 7 | + navbarPage("PRC", |
| 8 | + tabPanel('Data'), |
| 9 | + sidebarLayout( |
| 10 | + sidebarPanel( |
| 11 | + tabsetPanel( |
| 12 | + tabPanel("Example data", |
| 13 | + h4("Use example data"), |
| 14 | + p("Tick the box below if you'd like to use the chlorpyrifos' dataset:"), |
| 15 | + checkboxInput('example', 'Use Chlorpyrifos dataset', FALSE), |
| 16 | + h4("Download example data"), |
| 17 | + p("Alternatively, you can download both data files here and upload them in the next tab.") |
| 18 | + ), |
| 19 | + tabPanel("Data Upload", |
| 20 | + h3("Upload data in csv format"), |
| 21 | + h4("CSV settings:"), |
| 22 | + h5(strong("Header")), |
| 23 | + checkboxInput('header', 'first row contains column names', TRUE), |
| 24 | + radioButtons( |
| 25 | + inputId = 'sep', |
| 26 | + label = 'Separator', |
| 27 | + choices = c( |
| 28 | + Comma = ',', |
| 29 | + Semicolon = ';', |
| 30 | + Tab = '\t' |
| 31 | + ) |
| 32 | + ), |
| 33 | + radioButtons( |
| 34 | + inputId = 'quote', |
| 35 | + label = 'Quotes', |
| 36 | + choices = c( |
| 37 | + 'Double quotes' = '"', |
| 38 | + 'Single quotes' = "'", |
| 39 | + 'None' = '' |
| 40 | + ) |
| 41 | + ), |
| 42 | + h5(strong("Abundance data")), |
| 43 | + fileInput( |
| 44 | + inputId = 'abufile', |
| 45 | + label = 'Select a CSV file with samples as rows and species as columns.', |
| 46 | + accept = c('text/csv','text/comma-separated-values','.csv') |
| 47 | + ), |
| 48 | + h5(strong("Explanatory data")), |
| 49 | + fileInput( |
| 50 | + 'envfile', |
| 51 | + 'Select a CSV file with three columns: time, treatment and replicat. ', |
| 52 | + accept = c('text/csv','text/comma-separated-values','.csv') |
| 53 | + ) |
| 54 | + ) |
| 55 | + ) |
| 56 | + ), |
| 57 | + mainPanel( |
| 58 | + h3("Abundance data"), |
| 59 | + p("Displaying first 10 species, and rows"), |
| 60 | + tableOutput("abutable"), |
| 61 | + h3("Env data"), |
| 62 | + p("Displaying first 10 rows"), |
| 63 | + tableOutput("envtable") |
| 64 | + ), |
| 65 | + ), |
| 66 | + tabPanel('Transformations'), |
| 67 | + tabPanel('Plot'), |
| 68 | + tabPanel('Summary'), |
| 69 | + tabPanel('Population level statistics') |
| 70 | + )) |
0 commit comments