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
4cc5d937
Commit
4cc5d937
authored
May 03, 2018
by
dmattek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added: setting bounds for y-axis in single-trajectory plot
parent
a8384aa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
modules/trajPlot.R
modules/trajPlot.R
+25
-2
No files found.
modules/trajPlot.R
View file @
4cc5d937
...
...
@@ -24,7 +24,8 @@ 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
)
sliderInput
(
ns
(
'sliPlotTrajSkip'
),
'Plot every n-th point:'
,
min
=
1
,
max
=
10
,
value
=
1
,
step
=
1
),
uiOutput
(
ns
(
'uiSlYTrim'
))
),
column
(
3
,
...
...
@@ -79,6 +80,27 @@ modTrajPlot = function(input, output, session,
})
# UI for trimming y-axis
output
$
uiSlYTrim
=
renderUI
({
cat
(
file
=
stderr
(),
'UI uiSlYTrim\n'
)
loc.dt
=
in.data
()
locYmin
=
signif
(
min
(
loc.dt
$
y
),
4
)
locYmax
=
signif
(
max
(
loc.dt
$
y
),
4
)
sliderInput
(
ns
(
'slYTrim'
),
label
=
'Trim y-axis'
,
min
=
locYmin
,
max
=
locYmax
,
value
=
c
(
locYmin
,
locYmax
)
)
})
callModule
(
modTrackStats
,
'dispTrackStats'
,
in.data
=
in.data
)
...
...
@@ -195,7 +217,8 @@ modTrajPlot = function(input, output, session,
aux.label1
=
if
(
locPos
)
'pos.x'
else
NULL
,
aux.label2
=
if
(
locPos
)
'pos.y'
else
NULL
,
aux.label3
=
if
(
locObjNum
)
'obj.num'
else
NULL
,
stat.arg
=
input
$
chBPlotTrajStat
stat.arg
=
input
$
chBPlotTrajStat
,
ylim.arg
=
input
$
slYTrim
)
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