QtAC.network: network

View source: R/QtAC_package.R

QtAC.networkR Documentation

network

Description

This function plots a selected adjacency matrix as network.

Usage

QtAC.network(
  result_mtx,
  num_mtx = 1,
  edge_label = FALSE,
  dec = 2,
  layout = "nicely",
  edge_width = 3,
  arrow_width = 5,
  col_node = "palegreen3",
  col_edge = "steelblue3",
  vertex_label = "short",
  title = paste("Network of Adjacency matrix ", times[num_mtx]),
  save = FALSE,
  filename = paste("network_", num_mtx, sep = "")
)

Arguments

result_mtx

list of adjacency matrices and significance matrices

num_mtx

number of the adjacency matrix you want to plot (default = 1)

edge_label

If edge_label = TRUE, the weight of the edges are plotted next to the edges.

dec

number of decimal digits in the edge labels

layout

layout format ("circle","star","fruchterman.reingold","grid","nicely")

edge_width

muliplicator for the width of the edges

arrow_width

muliplicator for the width of the arrows

col_node

color of the vertices

col_edge

color of the edges

vertex_label

If vertex_label = "short", the first 4 letters of the components' names will be used as vertex labels, if vertex_label = "long", the whole names will be used as vertex labels. Via vertex_label = c(...), customized names can be used as vertex labels.

title

title of the network

save

If save = TRUE, the network will be saved as a PNG file.

filename

If save = TRUE, the network will be saved in a file called filename.

Value

network plot and, if save = TRUE, a PNG file containing the plot


hannahschrenk/QtAC documentation built on July 27, 2023, 5:35 a.m.