weight.density: Weight Density Plots

View source: R/tk.r

weight.densityR Documentation

Weight Density Plots

Description

Display weights of valid and invalid matrices as a density plots

Usage

weight.density(sim, epsilon = 1e-05, main = "")

weight.density0(
  sim,
  perturb,
  monitor,
  edges,
  smooth = 1,
  epsilon = 1e-05,
  main = ""
)

Arguments

sim

the result from system.simulate

epsilon

outomes below this in absolute magnitude are treated as zero.

main

text for plot title

perturb

a named vector that indicates which nodes were perturbed and the relative magnitude of the perturbation.

monitor

n named vector of signs (-1,0,1) or NA that indicates the outcome of the perturbation.

edges

logical vector indicating which edges to plot.

smooth

double in the range [0,1] controlling the level of smoothing applied.

Details

This control constructs density plots that show the distribution of selected edge weights for the cases that meet the selected validation criteria (blue), and those that do not (red), following a given perturbation.

The slider controls the level of smoothing of the densities. Edges are labelled by pairs of integers for compactness, where the integer codes correspond to the ordering of the node labels.

weight.density0 is a non-interactive variant for programmatic use.


SWotherspoon/QPress documentation built on Sept. 26, 2022, 2:27 a.m.