Commit 87ac9ba4 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

added ANOVA stats to boxplots

parent 24e0a4b3
Pipeline #3161 failed with stages
in 3 minutes and 22 seconds
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
<svg :width="width" :height="height"> <svg :width="width" :height="height">
<rect x="0" y="0" :height="height" :width="width" style="opacity: 0;" @click="resetFilter"></rect> <rect x="0" y="0" :height="height" :width="width" style="opacity: 0;" @click="resetFilter"></rect>
<g :transform="`translate(${margin.left}, ${margin.top})`"> <g :transform="`translate(${margin.left}, ${margin.top})`">
<text :x="this.padded.width / 2" class="fjs-anova-results">
ANOVA -- F-value: {{ this.results.anova.f_value.toFixed(4) }}
&nbsp p-value: {{ this.results.anova.p_value.toFixed(4) }}
</text>
<g class="fjs-boxplot-axis fjs-x-axis" :transform="`translate(0, ${padded.height})`"></g> <g class="fjs-boxplot-axis fjs-x-axis" :transform="`translate(0, ${padded.height})`"></g>
<g class="fjs-boxplot-axis fjs-y-axis"></g> <g class="fjs-boxplot-axis fjs-y-axis"></g>
<g class="fjs-box" <g class="fjs-box"
...@@ -143,7 +147,8 @@ ...@@ -143,7 +147,8 @@
}, },
results: { results: {
data: [], data: [],
statistics: {} statistics: {},
anova: {}
} }
} }
}, },
...@@ -167,9 +172,9 @@ ...@@ -167,9 +172,9 @@
}, },
margin () { margin () {
const left = 10 const left = 10
const top = 10 const top = this.height / 20
const right = this.width / 20 const right = this.width / 20
const bottom = this.height * 0.3 const bottom = this.height / 3
return { left, top, right, bottom } return { left, top, right, bottom }
}, },
padded () { padded () {
...@@ -412,6 +417,8 @@ ...@@ -412,6 +417,8 @@
fill: none fill: none
stroke: black stroke: black
stroke-width: 0.2% stroke-width: 0.2%
.fjs-anova-results
text-anchor: middle
</style> </style>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment