View source: R/netgraph.netconnection.R
netgraph.netconnection | R Documentation |
This function generates a graph of the evidence network.
## S3 method for class 'netconnection'
netgraph(
x,
seq,
col = seq_len(x$n.subnets),
reference.group = NULL,
plastic = FALSE,
...
)
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
|
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.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de, Gerta Rücker gerta.ruecker@uniklinik-freiburg.de
netconnection
, netgraph.netmeta
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.