Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shiny-timecourse-inspector
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pertz-lab
shiny-timecourse-inspector
Commits
b2e216db
Commit
b2e216db
authored
May 19, 2018
by
dmattek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change: bounds for display of y-axis changed from slider to numeric fields
parent
1bfeb168
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
4 deletions
+48
-4
modules/tabClHier.R
modules/tabClHier.R
+2
-1
modules/trajPlot.R
modules/trajPlot.R
+46
-3
No files found.
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