impact.barplot.shiny: Shiny Impact Barplot

View source: R/shiny.R

impact.barplot.shinyR Documentation

Shiny Impact Barplot

Description

A Shiny app to display the impact of a perturbation as a barplot

Usage

impact.barplot.shiny(sim, epsilon = 1e-05, main = "", cex.axis = 1)

Arguments

sim

the result from system.simulate

epsilon

outomes below this in absolute magnitude are treated as zero.

main

text for plot title

cex.axis

character expansion factor for the edge labels

Details

This control constructs a barplot that shows the fraction of simulations in which a positive (orange), negative (blue) or zero (off white) outcome occurs at each node following a given perturbation.

The user may specify the perturbation of the nodes, and any outcome known from monitoring the network, and then construct a barplot of the frequency table of outcomes at each node.

Examples

## Not run: 
  set.seed(32)
  ## Sample model
  edges <- parse.digraph(c(
    "E *-> D",
    "D *-> C",
    "C -> E",
    "E *-> B",
    "B *-> A",
    "A -> E",
    "D --> B"))
  edges <- enforce.limitation(edges)
  sims <- system.simulate(10, edges)
  impact.barplot.shiny(sims)

## End(Not run)


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