gs.plot.heatmap: Graph Heatmap plot

Description Usage Arguments Value Author(s)

Description

A function that plots an igraph object, as a heatmap.

Usage

1
2
3
gs.plot.heatmap(g, title = "", src.label = "Vertex", tgt.label = "Vertex",
  edge.attr = NULL, font.size = NULL, vertex.label = FALSE,
  vertex.attr = FALSE, edge.xfm = FALSE, eps = 1e-04, degree = TRUE)

Arguments

g

input graph, as an igraph object. See graph for details.

title

the title for the square plot. Defaults to "".

src.label

the source label for the graph. Defaults to "Vertex".

tgt.label

the target label for the graph. Defaults to "Vertex".

edge.attr

the name of the attribute to use for weights. Defaults to NULL.

  • is.null(edge.attr) plots the graph as a binary adjacency matrix.

  • is.character(edge.attr) plot the graph as a weighted adjacency matrix, with edge-weights for E(g) given by E(g)[[edge.attr]].

font.size

the default font size for the plot text. Axis/legend text is font.size - 2. Defaults to NULL.

  • is.null(font.size) uses the default sizing for all fonts.

  • !is.null(font.size) uses font.size as the font sizing for the plots.

vertex.label

an attribute for naming the vertices. Defaults to NULL.

  • vertex.label==FALSE name the vertices V(g) sequentially, as 1, 2, ... n.

  • vertex.label==TRUE name the vertices V(g) as V(g)$name.

vertex.attr

an attribute to color vertices. Defaults to FALSE.

  • vertex.attr==FALSE assumes no grouping of the vertices, and adds no color accordingly.

  • is.character(vertex.attr) assumes a grouping of the vertices given for V(g) by V(G)[[vertex.attr]], and groups the vertices in V(g) into ordered blocks with color-coding.

edge.xfm

log-transform the edge-weights. Defaults to FALSE.

  • edge.xfm==FALSE do not transform the edge-weights.

  • edge.xfm == "log" transform the edge values, using the natural-logarithm operation. See log for details. Does not work if there are negative edge-weights.

  • edge.xfm == "log10" transform the edge values, using the logarithm-base-10 operation. See log10 for details. Does not work if there are negative edge-weights.

Value

the graph/graphs as a plot.

Author(s)

Eric Bridgeford


neurodata/graphstats documentation built on May 14, 2019, 5:19 p.m.