data(Senn2013)
## Generation of an object of class 'netmeta' with reference treatment 'plac'
##
net1 <- netmeta(TE, seTE, treat1, treat2, studlab,
data=Senn2013, sm="MD", reference="plac")
## Network graph with default settings
##
netgraph(net1)
## Network graph with specified order of the treatments and one
## highlighted comparison
##
trts <- c("plac", "benf", "migl", "acar", "sulf",
"metf", "rosi", "piog", "sita", "vild")
netgraph(net1, highlight="acar:metf", seq=trts)
## Same network graph using argument 'seq' in netmeta function
###
net2 <- netmeta(TE, seTE, treat1, treat2, studlab,
data=Senn2013, sm="MD", reference="plac",
seq=trts)
netgraph(net2, highlight="acar:metf")
## Network graph optimized, starting from a circle, with multi-arm
## study colored
##
netgraph(net1, start="circle", iterate=TRUE, col.multiarm="purple")
## Network graph optimized, starting from a circle, with multi-arm
## study colored and all intermediate iteration steps visible
##
netgraph(net1, start="circle", iterate=TRUE, col.multiarm="purple",
allfigures=TRUE)
## Network graph optimized, starting from Laplacian eigenvectors, with
## multi-arm study colored
##
netgraph(net1, start="eigen", col.multiarm="purple")
## Network graph optimized, starting from different Laplacian
## eigenvectors, with multi-arm study colored
##
netgraph(net1, start="prcomp", col.multiarm="purple")
## Network graph optimized, starting from random initial layout, with
## multi-arm study colored
##
netgraph(net1, start="random", col.multiarm="purple")
## Network graph without 3D look of the comparisons and one
## highlighted comparison
##
netgraph(net1, plastic=FALSE, highlight="acar:metf")
## Network graph without 3D look and comparisons with same thickness
##
netgraph(net1, plastic=FALSE, thickness=FALSE)
## Network graph with changed labels and specified order of the
## treatments
##
netgraph(net1, seq=c(1, 3, 5, 2, 9, 4, 7, 6, 8, 10),
labels=LETTERS[1:10])
Run the code above in your browser using DataLab