@@ -1570,7 +1570,8 @@ class TwoGroupsEffectSize(object):
15701570 mean differences between two groups.
15711571 """
15721572
1573- def __init__ (self , control , test , effect_size ,proportional ,
1573+ def __init__ (self , control , test , effect_size ,
1574+ proportional = False ,
15741575 is_paired = None , ci = 95 ,
15751576 resamples = 5000 ,
15761577 permutation_count = 5000 ,
@@ -1706,6 +1707,7 @@ def __init__(self, control, test, effect_size,proportional,
17061707 import scipy .stats as spstats
17071708
17081709 # import statsmodels.stats.power as power
1710+ import statsmodels
17091711
17101712 from string import Template
17111713 import warnings
@@ -2661,7 +2663,7 @@ def plot(self, color_col=None,
26612663 #bar plot
26622664 bar_label = None , bar_desat = 0.5 , bar_width = 0.5 ,bar_ylim = None ,
26632665 # error bar of proportion plot
2664- ci = None , err_color = None ,
2666+ ci = None , ci_type = 'bca' , err_color = None ,
26652667
26662668 float_contrast = True ,
26672669 show_pairs = True ,
@@ -2678,6 +2680,7 @@ def plot(self, color_col=None,
26782680 barplot_kwargs = None ,
26792681 violinplot_kwargs = None ,
26802682 slopegraph_kwargs = None ,
2683+ sankey_kwargs = None ,
26812684 reflines_kwargs = None ,
26822685 group_summary_kwargs = None ,
26832686 legend_kwargs = None ):
@@ -2778,6 +2781,12 @@ def plot(self, color_col=None,
27782781 accepted by matplotlib `plot()` function here, as a dict.
27792782 If None, the following keywords are
27802783 passed to plot() : {'linewidth':1, 'alpha':0.5}.
2784+ sankey_kwargs: dict, default None
2785+ Whis will change the appearance of the sankey diagram used to depict
2786+ paired proportional data when `show_pairs=True` and `proportional=True`.
2787+ Pass any keyword arguments accepted by plot_tools.sankeydiag() function
2788+ here, as a dict. If None, the following keywords are passed to sankey diagram:
2789+ {"width": 0.5, "align": "center", "alpha": 0.4, "bar_width": 0.1, "rightColor": False}
27812790 reflines_kwargs : dict, default None
27822791 This will change the appearance of the zero reference lines. Pass
27832792 any keyword arguments accepted by the matplotlib Axes `hlines`
0 commit comments