plot_FC {fMRItools}R Documentation

Plot FC

Description

Plot a functional connectivity matrix.

Usage

plot_FC(
  FC,
  zlim = c(-1, 1),
  diag_val = NULL,
  title = "FC matrix",
  cols = color_palette("Beach"),
  cleg_ticks_by = diff(zlim)/2,
  cleg_digits = NULL,
  labels = NULL,
  lines = NULL,
  lines_col = "black",
  lines_lwd = 1,
  cex = 0.8
)

Arguments

FC

The functional connectivity matrix, a square numeric matrix with values between -1 and 1.

zlim

The minimum and maximum range of the color scale. Default: c(-1, 1). If in descending order, the color scale will be reversed.

diag_val

Set to NA for white, 1, or NULL (default) to not modify the diagonal values in FC.

title

(Optional) Plot title.

cols

Character vector of colors for the color scale. Default: color_palette("Beach").

cleg_ticks_by

Spacing between ticks on the color legend. Default: range(zlim)/2.

cleg_digits

How many decimal digits for the color legend. Default: NULL to set automatically.

labels

A character vector of length length(lines)+1, giving row/column labels for the submatrices divided by lines. If NULL (default), do not add labels.

lines

Add lines to divide the FC matrix into submatrices? Default: NULL (do not draw lines). Use seq(nN) to delineate each individual row and column.

lines_col, lines_lwd

Color and line width of the lines. Default: black lines of width 1.

cex

Text size. Default: 0.8.


[Package fMRItools version 0.4.7 Index]