-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
60 lines (42 loc) · 1.38 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
library(shiny)
library(rgl)
library(pavo)
shinyUI(pageWithSidebar(
# Application title
headerPanel("Animal colorspaces: how birds see the world"),
# Sidebar with a slider input for number of points
sidebarPanel(
fileInput('indat', 'Load spectrometer files', multiple = TRUE),
selectInput('vissystem', 'Select visual system:', c(
'Average UV system' = 'avg.uv',
'Blue Tit' = 'bluetit',
'European Starling' = 'star',
'Average VIS system' = 'avg.v',
'Peafowl' = 'pfowl'
)),
helpText(
"Don't have your own spectral data? No problem! Click ",
a(href="https://github.com/rmaia/pavo/blob/master/vignette_data/vignette_data.zip?raw=true", target="_blank", "here"),
"to download the pavo vignette dataset."
),
radioButtons('ptcol', 'Point color:',
c('Black' = 'black',
'Approximate color' = 'varcol')),
checkboxGroupInput('options', 'Colorspace options:', c(
'Achromatic center' = 'achro',
'Tetrahedron floor' = 'floor',
'Color volume' = 'grid',
'Color volume fill' = 'fill'
), selected=c('achro')),
sliderInput('ptsize', 'point size',
min = 1,
max = 10,
value=1, step = 0.5
),
HTML("<hr />"),
helpText(HTML("designed by Rafael Maia"))
),
mainPanel(
rglwidgetOutput('tcs', height='700px', width='700px')
)
))