interactionPlot: Compare two interaction matrices

View source: R/plot-coefficients.r

interactionPlotR Documentation

Compare two interaction matrices

Description

Visually compare two interaction (adjacency) matrices and return accuracy statistics

Usage

interactionPlot(
  estimated.adjacency.matrix,
  true.adjacency.matrix,
  excluded.interactions = NULL,
  labels = TRUE,
  noplot = FALSE,
  legend = TRUE,
  ...
)

Arguments

estimated.adjacency.matrix

the interaction matrix of the model of interest.

true.adjacency.matrix

the interaction matrix of the model to compare with (usually, the one used for simulating the data).

excluded.interactions

a binary species x species matrix telling which interactions were excluded a priori.

labels

logical. Add default axis labels and title?

noplot

logical. Do plots? If TRUE, it will return the accuracy statistics only.

legend

logical. Plot legend?

...

further arguments to pass to plot.

Value

A vector with accuracy statistics.


eicm documentation built on May 31, 2023, 5:20 p.m.