Learn R Programming

brainGraph (version 2.7.3)

update_brainGraph_gui: Function to dynamically plot a graph

Description

This function is called by plot_brainGraph_gui to update the GUI.

Usage

update_brainGraph_gui(plotDev, g, g2, plotFunc, vsize.measure,
  ewidth.measure, vertColor, hemi, lobe, orient, vertSize.min,
  edgeWidth.min, edgeWidth.max, vertSize.const, edgeWidth.const,
  vertLabels, showLegend, comms, neighb, neighbInd = NULL, slider,
  vertSize.other, edgeWidth.other, vertSize.eqn, showDiameter, edgeDiffs)

Arguments

plotDev

A Cairo device for the plotting area

g

An igraph graph object for the first plotting area

g2

An igraph graph object for the second plotting area

plotFunc

A character string specifying which type of plot to use

vsize.measure

Character string of the name of the attribute for vertex scaling

ewidth.measure

Character string of the name of the attribute for edge scaling

vertColor

A GTK combo box for changing vertex colors

hemi

A GTK combo box for plotting individual hemispheres

lobe

Character string of the lobe name to select (comma-separated if multiple lobes are listed)

orient

A GTK combo box for plotting a specific orientation

vertSize.min

A GTK spin button for minimum vertex size

edgeWidth.min

A GTK spin button for minimum edge width

edgeWidth.max

A GTK spin button for maximum edge width

vertSize.const

A GTK entry for constant vertex size

edgeWidth.const

A GTK entry for constant width

vertLabels

A GTK check button for showing vertex labels

showLegend

A GTK check button for showing a legend

comms

Integer vector of the communities to plot

neighb

Character vector of vertex names for getting neighborhoods

neighbInd

Integer vector of vertex indices of neighb

slider

A GTK horizontal slider widget for changing edge curvature

vertSize.other

A GTK entry for vertex size (other attributes)

edgeWidth.other

A GTK entry for edge width (other attributes)

vertSize.eqn

A GTK entry for equations to exclude vertices

showDiameter

A GTK check button for showing the graph's diameter

edgeDiffs

A GTK check button for showing edge diffs between graphs