Skip to content

Commit f7dbfb1

Browse files
committed
Working double stratification for box, sina, and scatter plot components
1 parent ed0e62d commit f7dbfb1

File tree

6 files changed

+1298
-154
lines changed

6 files changed

+1298
-154
lines changed

examples-src/App.vue

Lines changed: 134 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,48 @@
655655
/>
656656
</PlotContainer>
657657

658+
<h3>&lt;DoubleStratifiedBoxPlot/&gt;</h3>
659+
<PlotContainer
660+
:pWidth="500"
661+
:pHeight="300"
662+
:pMarginTop="10"
663+
:pMarginLeft="120"
664+
:pMarginRight="10"
665+
:pMarginBottom="180"
666+
>
667+
<Axis
668+
slot="axisLeft"
669+
variable="exposure"
670+
side="left"
671+
:tickRotation="-35"
672+
:getScale="getScale"
673+
:getStack="getStack"
674+
/>
675+
<DoubleStratifiedBoxPlot
676+
slot="plot"
677+
data="exposures_data"
678+
variable="COSMIC 1"
679+
s="clinical_data"
680+
x="sex"
681+
s2="clinical_data"
682+
x2="sex"
683+
y="exposure"
684+
o="sample_id"
685+
:getData="getData"
686+
:getScale="getScale"
687+
:clickHandler="exampleClickHandler"
688+
:drawOutliers="true"
689+
/>
690+
<Axis
691+
slot="axisBottom"
692+
variable="sex"
693+
side="bottom"
694+
:tickRotation="-65"
695+
:getScale="getScale"
696+
:getStack="getStack"
697+
/>
698+
</PlotContainer>
699+
658700
<h3>&lt;StratifiedSinaPlot/&gt;</h3>
659701
<PlotContainer
660702
:pWidth="500"
@@ -696,6 +738,49 @@
696738
/>
697739
</PlotContainer>
698740

741+
<h3>&lt;DoubleStratifiedSinaPlot/&gt;</h3>
742+
<PlotContainer
743+
:pWidth="500"
744+
:pHeight="300"
745+
:pMarginTop="10"
746+
:pMarginLeft="120"
747+
:pMarginRight="10"
748+
:pMarginBottom="180"
749+
>
750+
<Axis
751+
slot="axisLeft"
752+
variable="exposure"
753+
side="left"
754+
:tickRotation="-35"
755+
:getScale="getScale"
756+
:getStack="getStack"
757+
/>
758+
<DoubleStratifiedSinaPlot
759+
slot="plot"
760+
data="exposures_data"
761+
variable="COSMIC 1"
762+
s="clinical_data"
763+
x="sex"
764+
s2="clinical_data"
765+
x2="sex"
766+
y="exposure"
767+
o="sample_id"
768+
:getData="getData"
769+
:getScale="getScale"
770+
:clickHandler="exampleClickHandler"
771+
:fillPoints="true"
772+
strokeColor="gray"
773+
/>
774+
<Axis
775+
slot="axisBottom"
776+
variable="sex"
777+
side="bottom"
778+
:tickRotation="-65"
779+
:getScale="getScale"
780+
:getStack="getStack"
781+
/>
782+
</PlotContainer>
783+
699784
<h3>&lt;StratifiedScatterPlot/&gt;</h3>
700785
<PlotContainer
701786
:pWidth="500"
@@ -736,6 +821,48 @@
736821
/>
737822
</PlotContainer>
738823

824+
<h3>&lt;DoubleStratifiedScatterPlot/&gt;</h3>
825+
<PlotContainer
826+
:pWidth="500"
827+
:pHeight="300"
828+
:pMarginTop="10"
829+
:pMarginLeft="120"
830+
:pMarginRight="10"
831+
:pMarginBottom="180"
832+
>
833+
<Axis
834+
slot="axisLeft"
835+
variable="exposure"
836+
side="left"
837+
:tickRotation="-35"
838+
:getScale="getScale"
839+
:getStack="getStack"
840+
/>
841+
<DoubleStratifiedScatterPlot
842+
slot="plot"
843+
data="exposures_data"
844+
variable="COSMIC 1"
845+
s="clinical_data"
846+
x="age"
847+
s2="clinical_data"
848+
x2="sex"
849+
y="exposure"
850+
o="sample_id"
851+
:fillPoints="true"
852+
strokeColor="gray"
853+
:getData="getData"
854+
:getScale="getScale"
855+
:clickHandler="exampleClickHandler"
856+
/>
857+
<Axis
858+
slot="axisBottom"
859+
variable="age"
860+
side="bottom"
861+
:getScale="getScale"
862+
:getStack="getStack"
863+
/>
864+
</PlotContainer>
865+
739866
<h3>&lt;RectPlot/&gt;</h3>
740867
<PlotContainer
741868
:pWidth="50"
@@ -908,8 +1035,11 @@ import {
9081035
MultiDataTrackPlot,
9091036
HierarchicalMultiTrackPlot,
9101037
StratifiedBoxPlot,
1038+
DoubleStratifiedBoxPlot,
9111039
StratifiedScatterPlot,
1040+
DoubleStratifiedScatterPlot,
9121041
StratifiedSinaPlot,
1042+
DoubleStratifiedSinaPlot,
9131043
StratifiedKaplanMeierPlot,
9141044
CountBarPlot,
9151045
GenomeScatterPlot,
@@ -974,7 +1104,7 @@ const xyDataContainer = new DataContainer(
9741104
'xy_data',
9751105
'Random Data',
9761106
xyData,
977-
expectedDataSource,
1107+
expectedDataSource
9781108
);
9791109
const clinicalDataContainer = new DataContainer(
9801110
'clinical_data',
@@ -1304,8 +1434,11 @@ export default {
13041434
MultiTrackPlot,
13051435
HierarchicalMultiTrackPlot,
13061436
StratifiedBoxPlot,
1437+
DoubleStratifiedBoxPlot,
13071438
StratifiedScatterPlot,
1439+
DoubleStratifiedScatterPlot,
13081440
StratifiedSinaPlot,
1441+
DoubleStratifiedSinaPlot,
13091442
StratifiedKaplanMeierPlot,
13101443
CountBarPlot,
13111444
GenomeScatterPlot,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy