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
1fcf46e8
Commit
1fcf46e8
authored
Oct 10, 2019
by
dmattek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: no mean line if NAs present
parent
ca0500df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/trajRibbonPlot.R
modules/trajRibbonPlot.R
+5
-4
No files found.
modules/trajRibbonPlot.R
View file @
1fcf46e8
...
...
@@ -313,7 +313,7 @@ modTrajRibbonPlot = function(input, output, session,
if
(
input
$
rBPlotTrajStat
==
"Mean"
)
{
# calculate the mean
loc.dt.aggr
=
loc.dt
[,
.
(
Mean
=
mean
(
get
(
COLY
))),
by
=
c
(
in.facet
,
COLRT
)]
loc.dt.aggr
=
loc.dt
[,
.
(
Mean
=
mean
(
get
(
COLY
)
,
na.rm
=
T
)),
by
=
c
(
in.facet
,
COLRT
)]
}
else
if
(
input
$
rBPlotTrajStat
==
"CI"
)
{
# calculate the mean and the confidence intervals
...
...
@@ -326,9 +326,10 @@ modTrajRibbonPlot = function(input, output, session,
}
else
if
(
input
$
rBPlotTrajStat
==
"SE"
)
{
# calculate the mean and the standard error of the mean
loc.dt.aggr
=
loc.dt
[,
.
(
Mean
=
mean
(
get
(
COLY
)),
Lower
=
mean
(
get
(
COLY
))
-
LOCstderr
(
get
(
COLY
)),
Upper
=
mean
(
get
(
COLY
))
+
LOCstderr
(
get
(
COLY
))),
by
=
c
(
in.facet
,
COLRT
)]
loc.dt.aggr
=
loc.dt
[,
.
(
Mean
=
mean
(
get
(
COLY
),
na.rm
=
T
),
Lower
=
mean
(
get
(
COLY
),
na.rm
=
T
)
-
LOCstderr
(
get
(
COLY
),
na.rm
=
T
),
Upper
=
mean
(
get
(
COLY
),
na.rm
=
T
)
+
LOCstderr
(
get
(
COLY
),
na.rm
=
T
)),
by
=
c
(
in.facet
,
COLRT
)]
loc.ribbon.lohi
=
c
(
'Lower'
,
'Upper'
)
}
...
...
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