netgraph.netconnection: Network graph for objects of class netconnection

View source: R/netgraph.netconnection.R

netgraph.netconnectionR 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 netconnection.

seq

A character or numerical vector specifying the sequence of treatments arrangement (anticlockwise if start.layout = "circle").

col

A single color (or vector of colors) for lines connecting treatments (edges) if argument plastic = FALSE (see Details).

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 netgraph.netmeta (see Details).

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)


netmeta documentation built on May 31, 2023, 5:45 p.m.