plotGraph: Plot an igraph of a network

Description Usage Arguments Value

View source: R/results.R

Description

Plot an igraph of a network

Usage

1
plotGraph(model, i, activeColours = T, layout = igraph::layout_nicely, ...)

Arguments

model

network to plot

i

generation to plot

activeColours

whether to highlight the active advice connections

layout

layout for the graph

...

Arguments passed on to igraph::plot.igraph

x

The graph to plot.

axes

Logical, whether to plot axes, defaults to FALSE.

add

Logical scalar, whether to add the plot to the current device, or delete the device's current contents first.

xlim

The limits for the horizontal axis, it is unlikely that you want to modify this.

ylim

The limits for the vertical axis, it is unlikely that you want to modify this.

mark.groups

A list of vertex id vectors. It is interpreted as a set of vertex groups. Each vertex group is highlighted, by plotting a colored smoothed polygon around and “under” it. See the arguments below to control the look of the polygons.

mark.shape

A numeric scalar or vector. Controls the smoothness of the vertex group marking polygons. This is basically the ‘shape’ parameter of the xspline function, its possible values are between -1 and 1. If it is a vector, then a different value is used for the different vertex groups.

mark.col

A scalar or vector giving the colors of marking the polygons, in any format accepted by xspline; e.g. numeric color ids, symbolic color names, or colors in RGB.

mark.border

A scalar or vector giving the colors of the borders of the vertex group marking polygons. If it is NA, then no border is drawn.

mark.expand

A numeric scalar or vector, the size of the border around the marked vertex groups. It is in the same units as the vertex sizes. If a vector is given, then different values are used for the different vertex groups.

Value

plot object


oxacclab/adviseR documentation built on Oct. 7, 2021, 8:05 p.m.