Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pertz-lab
shiny-timecourse-inspector
Commits
b2e216db
Commit
b2e216db
authored
May 19, 2018
by
dmattek
Browse files
Change: bounds for display of y-axis changed from slider to numeric fields
parent
1bfeb168
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/tabClHier.R
View file @
b2e216db
...
...
@@ -184,7 +184,8 @@ clustHier <- function(input, output, session, in.data4clust, in.data4trajPlot) {
selected
=
1
)
}
})
# UI for setting lower and upper bounds for heat map colour scale
output
$
uiSetColBoundsLow
=
renderUI
({
ns
<-
session
$
ns
...
...
modules/trajPlot.R
View file @
b2e216db
...
...
@@ -25,7 +25,17 @@ modTrajPlotUI = function(id, label = "Plot Individual Time Series") {
column
(
3
,
sliderInput
(
ns
(
'sliPlotTrajSkip'
),
'Plot every n-th point:'
,
min
=
1
,
max
=
10
,
value
=
1
,
step
=
1
),
uiOutput
(
ns
(
'uiSlYTrim'
))
checkboxInput
(
ns
(
'chBsetColBounds'
),
'Set bounds for y-axis'
,
FALSE
),
fluidRow
(
column
(
6
,
uiOutput
(
ns
(
'uiSetColBoundsLow'
))
),
column
(
6
,
uiOutput
(
ns
(
'uiSetColBoundsHigh'
))
)
)
),
column
(
3
,
...
...
@@ -81,7 +91,40 @@ modTrajPlot = function(input, output, session,
# UI for trimming y-axis
output
$
uiSlYTrim
=
renderUI
({
output
$
uiSetColBoundsLow
=
renderUI
({
ns
<-
session
$
ns
if
(
input
$
chBsetColBounds
)
{
loc.dt
=
in.data
()
numericInput
(
ns
(
'inSetColBoundsLow'
),
label
=
'Lower'
,
step
=
0.1
,
value
=
floor
(
min
(
loc.dt
[[
'y'
]],
na.rm
=
T
))
)
}
})
output
$
uiSetColBoundsHigh
=
renderUI
({
ns
<-
session
$
ns
if
(
input
$
chBsetColBounds
)
{
loc.dt
=
in.data
()
numericInput
(
ns
(
'inSetColBoundsHigh'
),
label
=
'Upper'
,
step
=
0.1
,
value
=
ceil
(
max
(
loc.dt
[[
'y'
]],
na.rm
=
T
))
)
}
})
output
$
uiSlYTrim
=
renderUI
({
cat
(
file
=
stderr
(),
'UI uiSlYTrim\n'
)
loc.dt
=
in.data
()
...
...
@@ -218,7 +261,7 @@ modTrajPlot = function(input, output, session,
aux.label2
=
if
(
locPos
)
'pos.y'
else
NULL
,
aux.label3
=
if
(
locObjNum
)
'obj.num'
else
NULL
,
stat.arg
=
input
$
chBPlotTrajStat
,
ylim.arg
=
input
$
slYTrim
ylim.arg
=
c
(
input
$
inSetColBoundsLow
,
input
$
inSetColBoundsHigh
)
)
return
(
p.out
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment