netgraph.netconnection {netmeta} | R Documentation |
Network graph for objects of class netconnection
Description
This function generates a graph of the evidence network.
Usage
## S3 method for class 'netconnection'
netgraph(
x,
seq,
col = seq_len(x$n.subnets),
reference.group = NULL,
plastic = FALSE,
...
)
Arguments
x |
An object of class |
seq |
A character or numerical vector specifying the sequence
of treatments arrangement (anticlockwise if |
col |
A single color (or vector of colors) for lines
connecting treatments (edges) if argument |
reference.group |
Reference treatment (only relevant for disconnected networks). |
plastic |
A logical indicating whether the appearance of the comparisons should be in '3D look'. |
... |
Additional arguments passed on to
|
Details
Argument col
can be a single color for all edges, a vector
of length equal to the number of edges, or a vector of length equal
to the number of subnetworks. Argument reference.group
is
only considered in disconnected networks, i.e., if more than one
(sub)network exists, and if argument col
provides colors for
subnetworks. In this case, the first color provided in argument
col
defines the color for the subnetwork with the reference
treatment.
Author(s)
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de, Gerta Rücker gerta.ruecker@uniklinik-freiburg.de
See Also
netconnection
, netgraph.netmeta
Examples
# Artificial example with two subnetworks
#
t1 <- c("G", "B", "B", "D", "A", "F")
t2 <- c("B", "C", "E", "E", "H", "A")
#
nc1 <- netconnection(t1, t2)
print(nc1, details = TRUE)
netgraph(nc1, points = TRUE, adj = 0.5, bg.points = "lightgray")
netgraph(nc1, points = TRUE, adj = 0.5, bg.points = "lightgray",
plastic = TRUE)