netgraph: Generic function for network graphs

View source: R/netgraph.R

netgraphR Documentation

Generic function for network graphs

Description

Generic function for network graphs

Usage

netgraph(x, ...)

Arguments

x

An R object.

...

Additional arguments.

Details

For more details, look at the following functions to generate network graphs:

  • netgraph.netmeta

  • netgraph.netimpact

Author(s)

Guido Schwarzer sc@imbi.uni-freiburg.de

See Also

netgraph.netmeta, netgraph.netimpact

Examples

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)

## Not run: 
data(Woods2010)
p1 <- pairwise(treatment, event = r, n = N,
  studlab = author, data = Woods2010, sm = "OR")
net2 <- netmeta(p1)

# Network graph with default settings
#
netgraph(net2)

# Network graph with
# - number of studies for each pairwise comparison and
# - number of participants for each treatment arm
#
netgraph(net2, number.of.studies = TRUE,
  labels = paste0(trts, " (n=", n.trts, ")"))

## End(Not run)


netmeta documentation built on July 12, 2022, 1:07 a.m.