See issue48-table-does-not-work-6rows-or-fewer.ipynb.
df=fp.load_data("sleep")
fp.forestplot(df.head(6), # the dataframe with results dataestimate="r", # col containing estimated effect size ll="ll", hl="hl", # lower & higher limits of conf. int.varlabel="label", # column containing the varlabels to be printed on far leftcapitalize="capitalize", # Capitalize labelspval="p-val", # column containing p-values to be formattedannote=["n", "power", "est_ci"], # columns to report on left of plotannoteheaders=["N", "Power", "Est. (95% Conf. Int.)"], # ^corresponding headersrightannote=["formatted_pval", "group"], # columns to report on right of plot right_annoteheaders=["P-value", "Variable group"], # ^corresponding headersxlabel="Pearson correlation coefficient", # x-label titletable=True, # Format as a table
)
See issue48-table-does-not-work-6rows-or-fewer.ipynb.