[chronojump] analyze dateAsX uses capture time (not session time)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] analyze dateAsX uses capture time (not session time)
- Date: Mon, 5 Sep 2016 15:35:39 +0000 (UTC)
commit b1ebeeaeefb4d22d404ca0e8a18760289f41d4ed
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Sep 5 17:30:31 2016 +0200
analyze dateAsX uses capture time (not session time)
encoder/graph.R | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index 3abecb5..2f85b12 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -1540,8 +1540,9 @@ paintCrossVariablesLaterality <- function(x, y, laterality, colBalls)
}
#option: mean or max
-paintCrossVariables <- function (paf, varX, varY, option, dateAsX,
- isAlone, title, singleFile, Eccon, ecconVector, seriesName,
+paintCrossVariables <- function (paf, varX, varY, option,
+ dateAsX, dateTime,
+ isAlone, title, singleFile, Eccon, ecconVector, seriesName,
diameter, gearedDown,
do1RM, do1RMMethod, outputData1)
{
@@ -1583,7 +1584,7 @@ paintCrossVariables <- function (paf, varX, varY, option, dateAsX,
if(dateAsX) {
xCopy <- x
- x <- as.Date(seriesName)
+ x <- as.Date(dateTime)
seriesName <- xCopy
}
@@ -2383,6 +2384,7 @@ doProcess <- function(options)
}
seriesName[(i+newLines)] = as.vector(inputMultiData$seriesName[i])
+
laterality[(i+newLines)] = as.vector(inputMultiData$laterality[i])
count = count + length(dataTempPhase)
@@ -3027,16 +3029,19 @@ doProcess <- function(options)
}
else if(op$Analysis == "cross") {
mySeries = "1"
- if(! singleFile)
+ myDateTime = NULL
+ if(! singleFile) {
mySeries = curves[,9]
+ myDateTime = curves[,7]
+ }
ecconVector = createEcconVector(singleFile, op$Eccon, length(curves[,1]), curves[,8])
if(op$AnalysisVariables[1] == "Speed,Power") {
par(mar=c(5,4,5,5))
analysisVertVars = unlist(strsplit(op$AnalysisVariables[1], "\\,"))
- paintCrossVariables(paf, op$AnalysisVariables[2], analysisVertVars[1],
- op$AnalysisVariables[3], FALSE,
+ paintCrossVariables(paf, op$AnalysisVariables[2], analysisVertVars[1],
op$AnalysisVariables[3],
+ FALSE, NULL,
"LEFT", "",
singleFile,
op$Eccon,
@@ -3045,8 +3050,8 @@ doProcess <- function(options)
repOp$diameter, repOp$gearedDown,
FALSE, FALSE, op$OutputData1)
par(new=T)
- paintCrossVariables(paf, op$AnalysisVariables[2], analysisVertVars[2],
- op$AnalysisVariables[3], FALSE,
+ paintCrossVariables(paf, op$AnalysisVariables[2], analysisVertVars[2],
op$AnalysisVariables[3],
+ FALSE, NULL,
"RIGHT", op$Title,
singleFile,
op$Eccon,
@@ -3059,8 +3064,8 @@ doProcess <- function(options)
dateAsX <- FALSE
if(length(op$AnalysisVariables) == 4 && op$AnalysisVariables[4] == "Date")
dateAsX <- TRUE
- paintCrossVariables(paf, op$AnalysisVariables[2], op$AnalysisVariables[1],
- op$AnalysisVariables[3], dateAsX,
+ paintCrossVariables(paf, op$AnalysisVariables[2], op$AnalysisVariables[1],
op$AnalysisVariables[3],
+ dateAsX, myDateTime,
"ALONE", op$Title,
singleFile,
op$Eccon,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]