dmphillippo / multinma

Network meta-analysis of individual and aggregate data in Stan
https://dmphillippo.github.io/multinma
35 stars 16 forks source link

Allow treatment labels to be placed alongside nodes in network plots #15

Closed zhui126 closed 2 years ago

zhui126 commented 2 years ago

Hi, Phillippo, Thank you for the excellent package. I have one little problem with the netgraph, in which the label text for each treatment is placed in the middle of the node (circle). I think it might be better to have the text placed under or at the side of the node(circle), just like the netgraph published in JAMA journals. I wonder if it is possible to change that. Hui

dmphillippo commented 2 years ago

Hi Hui, that's a great suggestion - thank you! I'll look into implementing this in the next release. David

zhui126 commented 2 years ago

Hi, David, Thank you for you kind reply. Best wishes, Hui

--------------原始邮件-------------- 发件人:"David Phillippo @.>; 发送时间:2022年3月25日(星期五) 晚上11:13 收件人:"dmphillippo/multinma" @.>; 抄送:"zhui126 @.>;"Author @.>; 主题:Re: [dmphillippo/multinma] About the netgraph (Issue #15)

Hi Hui, that's a great suggestion - thank you! I'll look into implementing this in the next release. David

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dmphillippo commented 2 years ago

I've added a nudge argument to the plot() method for networks - you can see an example here.

This will be in the next release, but if you like you can install the latest development version with this new feature like so:

install.packages("multinma", repos = c("https://dmphillippo.r-universe.dev", getOption("repos")))