This function reads a (square) matrix and plots it using ggplot2.

plotFC(
  FCmatrix,
  style = c("lower.tri", "full"),
  col = optionsFCnet("colorPaletteDefault"),
  limit = NULL,
  network_definition = NULL,
  plot_labels = F,
  colorNuances = optionsFCnet("colorNuances")
)

Arguments

FCmatrix

The FC matrix to plot

style

Whether to plot only the lower triangle (and diagonal) or the entire FC matrix.

col

The color palette used to plot values (i.e. a vector of colors). The vector is often divergent, es. c("red", "white", "blue"). Defaults to optionsFCnet("colorPaletteDefault").

limit

The limits for the FC values. Defaults to NULL and automatically adapts to the data range.

network_definition

A character vector specifying to which FC network the ROI belongs to. If provided, draws vertical and horizontal lines visually separating the networks.

plot_labels

if TRUE annotates the network names defined in network_definition. Pretty results not warranted.

colorNuances

Number of nuances along the provided colorPalette.

Value

A ggplot2 object which can be customized further.