plot_identification: Plot DAG and identification result

plot_identificationR Documentation

Plot DAG and identification result

Description

Plot the DAG and identification result computed using the identification function

Usage

plot_identification(
  cause,
  effect,
  dag,
  scm = FALSE,
  scm_ida = FALSE,
  fit = NULL,
  size_equation = 4,
  size_title = 13,
  aes_scm = list(),
  aes_scm_ida = list(),
  aes_idequation = list(),
  aes_fit = list()
)

Arguments

cause

a string with the name of the node to check if its causal effect on 'effect' is identifiable

effect

a string with the name of the node to check if the causal effect of 'cause' on this node is identifiable

dag

a string with the DAG

scm

boolean, if TRUE plot the SCM using a linear model for the conditional dependencies

scm_ida

boolean, if TRUE plot the identification analysis equations using linear models

fit

output of the function estimate. If provided it plots the total effect and the coefficiets of the SCM alongside the edges of the DAG

size_equation

numeric, font size of the expression in the identification expression subplot

size_title

numeric, font size of the title of the identification expression subplot

aes_scm

a named list with the aesthetic parameters for the SCM equations plot. See Details.

aes_scm_ida

a named list with the aesthetic parameters for the SCM equations derived from the identification analysis See Details.

aes_idequation

a named list with the aesthetic parameters for the identification expression. See Details.

aes_fit

a named list with the aesthetic parameters for the identification expression. See Details.

Details

The named list aes_* contains the aesthetic parameters of different subplots. The names must match the parameter label.


DiogoFerrari/idar documentation built on May 27, 2022, 10:07 p.m.