LSYS / forestplot

A Python package to make publication-ready but customizable coefficient plots.
http://forestplot.rtfd.io
MIT License
111 stars 10 forks source link

Plotting of estimates on a log-scale #28

Closed srison-qmul closed 1 year ago

srison-qmul commented 1 year ago

At present, the estimates ("r" in the example dataframe) can only be plotted on a linear scale. Certain estimates (e.g. Odds Ratios (ORs)) are typically plotted onto log-scales. For example, in forestplot: thumbnail_image Equivalent in 'R': image

It would be great if forestplot allowed users the request a log-scale and (ideally) to customize aspects of this.

LSYS commented 1 year ago

Thanks for raising this request @srison-qmul.

The next release will allow for log odds.

It seems like the current backend to draw the CIs does not allow for asymmetrical CIs common in ORs. This will have to be changed for the next release too.

shapiromatron commented 1 year ago

I'd love to have this feature too, but I honestly just wanted to drop a note to say I just found this package, really excited to try it out! Thanks for releasing this @LSYS!!!

srison-qmul commented 1 year ago

Agreed, great package and playing around with it, huge potential! Many thanks @LYSY. Stu

--

Dr. Stuart Rison, PhD., MBBS., MRCGP

Email: @.**@.> | Web: qmul.ac.uk/blizard/ceg/realhealth/https://www.qmul.ac.uk/blizard/ceg/realhealth/ |

Tel: +44(0)20 7882 6805 | Twitter: @QMUL_CEG / @DrRison


From: Andy Shapiro @.> Sent: 20 October 2022 18:55 To: LSYS/forestplot @.> Cc: Stuart Rison @.>; Mention @.> Subject: Re: [LSYS/forestplot] Plotting of estimates on a log-scale (Issue #28)

I'd love to have this feature too, but I honestly just wanted to drop a note to say I just found this package, really excited to try it out! Thanks for releasing this @LSYShttps://github.com/LSYS!!!

— Reply to this email directly, view it on GitHubhttps://github.com/LSYS/forestplot/issues/28#issuecomment-1285936337, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUPGCXNFTAPEGWTVTDNQHOLWEGBSTANCNFSM6AAAAAARIEHRE4. You are receiving this because you were mentioned.Message ID: @.***>

LSYS commented 1 year ago

closed in v0.2.0.