CRSU-Apps/MetaInsight

Network plot extension

Opened this issue · 0 comments

For the one of the network plots, it needs to be a different format in the ranking panel (ordered according to the rank results). Currently a separate plot function has been created:

MetaInsight/plot.R

Lines 95 to 100 in a5b3e70

# Network plot - number of trials on line
make_netgraph_rank = function(freq, order) {
return(netmeta::netgraph(freq$net1, labels=str_wrap(gsub("_", " ",freq$net1$trts), width=10), lwd=2, number.of.studies = TRUE, plastic=FALSE, points=TRUE, cex=1, cex.points=2, col.points=1, col=8, pos.number.of.studies=0.43,
col.number.of.studies = "forestgreen", col.multiarm = "white", bg.number.of.studies = "forestgreen", seq=gsub(" ", "_", str_wrap(order, width=1000)), #freq$net1$trts has not been formatted but 'order' has
))
}

Ideally need to create plot function to allow both types used in tabs 1c and 3c.