Example with customization #1 is outdated:
importforestplotasfpdf=fp.load_data("sleep")
fp.forestplot(df, # the dataframe with results dataestimate="r", # col containing estimated effect size moerror="moerror", # columns containing conf. int. margin of errorvarlabel="label", # column containing variable labelcapitalize="capitalize", # Capitalize labelsgroupvar="group", # Add variable groupings # group orderinggroup_order=["labor factors", "occupation", "age", "health factors", "family factors", "area of residence", "other factors"],
sort=True, # sort in ascending order (sorts within group if group is specified)
)
Example with customization #1 is outdated: