plot.GrangerInteraction function

Plot network diagram of Granger Causalities

Plot network diagram of Granger Causalities

## S3 method for class 'GrangerInteraction' plot(x, mfrow = NULL, mar = c(1, 1, 1, 1), oma = c(1, 1, 1, 1), ...)

Arguments

  • x: GrangerInteration object
  • mfrow: passed to par()
  • mar: passed to par()
  • oma: passed to par()
  • ...: passed through to plot.igraph()

Returns

data.frame of P-Values

Examples

r <- get_recording("NIR_ABh_Puriya", fps = 25) fv_list <- get_filtered_views(r, "Nose", n = 41, p = 3) jv <- get_joined_view(fv_list) jv <- subset(jv, Time <= 5*60) l <- list(a = c(0, 100), b = c(100, 200), c = c(200, 300)) splicing_df <- splice_time(l) sv <- get_spliced_view(jv, splicing_df) gi <- get_granger_interactions(sv, c("Nose_x_Central_Sitar", "Nose_x_Central_Tabla"), lag = 1/25) print(gi)

See Also

Other Granger Causality: autoplot.GrangerTime(), get_granger_interactions(), granger_test(), map_to_granger_test(), ms_condgrangertest(), ms_grangertest1(), ms_grangertest2(), plot_influence_diagram()

  • Maintainer: Tuomas Eerola
  • License: MIT + file LICENSE
  • Last published: 2023-06-09

Useful links