Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

netgraph.netimpact

Network graph for objects of class netimpact


Description

This function generates a graph of the evidence network.

Usage

## S3 method for class 'netimpact'
netgraph(
  x,
  col.ignore = "red",
  number.of.studies = TRUE,
  main,
  sub,
  multiarm = any(x$x$narms > 2),
  col.multiarm = NULL,
  alpha.transparency = 0.5,
  col.ignore.multiarm = "transparent",
  col = "slateblue",
  ...
)

Arguments

x

An object of class netimpact.

col.ignore

A character string indicating color for comparisons removed from network, either "transparent" or any color defined in colours.

number.of.studies

A logical indicating whether number of studies should be added to network graph.

main

Main title.

sub

Subtitle.

multiarm

A logical indicating whether multi-arm studies should be marked in plot.

col.multiarm

Either a function from R package colorspace or grDevice to define colors for multi-arm studies or a character vector with colors to highlight multi-arm studies.

alpha.transparency

The alpha transparency of colors used to highlight multi-arm studies (0 means transparent and 1 means opaque).

col.ignore.multiarm

A character string indicating color to mark multi-arm studies removed from network, either "transparent" or any color defined in colours.

col

A single color (or vector of colors) for lines connecting treatments (edges) if argument plastic = FALSE. Length of the vector must be equal to the number of edges.

...

Additional arguments passed on to netgraph.netmeta.

Author(s)

See Also

Examples

data(parkinson)

# Only consider first four studies (to reduce runtime of example)
#
p1 <- pairwise(list(Treatment1, Treatment2, Treatment3),
               n = list(n1, n2, n3),
               mean = list(y1, y2, y3),
               sd = list(sd1, sd2, sd3),
               data = subset(parkinson, Study < 5),
               studlab = Study)

net1 <- netmeta(p1)
ni <- netimpact(net1, verbose = TRUE)
netgraph(ni, plastic = FALSE)

netmeta

Network Meta-Analysis using Frequentist Methods

v1.4-0
GPL (>= 2)
Authors
Gerta Rücker [aut] (<https://orcid.org/0000-0002-2192-2560>), Ulrike Krahn [aut], Jochem König [aut] (<https://orcid.org/0000-0003-4683-0360>), Orestis Efthimiou [aut] (<https://orcid.org/0000-0002-0955-7572>), Guido Schwarzer [aut, cre] (<https://orcid.org/0000-0001-6214-9087>)
Initial release
2021-05-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.