plot_identification
Signature/Parameters
def plot_identification(self, content = 'default', effect = 'total', show_np = True, show_linear = True, show_do = True, kws_graph = {}, kws_identification = {}, kws_detailed = None, figsize = None, ratio = None, ncols = None, nrows = None, title_dag = None, title_info = None, txt_line_height = 0.55, *args, **kws)
Plot identification information alongside the DAG.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content
|
(default, detailed)
|
Level of detail displayed in the identification summary. Defaults to
|
'default'
|
effect
|
(total, direct, do)
|
Effect type to highlight when |
'total'
|
show_np
|
bool
|
Toggle inclusion of non-parametric, linear, and do-calculus
strategies in the summary. All default to |
True
|
show_linear
|
bool
|
Toggle inclusion of non-parametric, linear, and do-calculus
strategies in the summary. All default to |
True
|
show_do
|
bool
|
Toggle inclusion of non-parametric, linear, and do-calculus
strategies in the summary. All default to |
True
|
kws_graph
|
dict
|
Keyword arguments forwarded to |
{}
|
kws_identification
|
dict
|
Arguments passed to |
{}
|
kws_detailed
|
dict or None
|
Overrides for detailed identification output (e.g.,
|
None
|
figsize
|
tuple[float, float] or None
|
Figure size in inches. When |
None
|
ratio
|
float or None
|
Aspect ratio override for the combined plot. |
None
|
ncols
|
int or None
|
Layout configuration for identification panels. |
None
|
nrows
|
int or None
|
Layout configuration for identification panels. |
None
|
title_dag
|
str or None
|
Title displayed above the DAG subplot. |
None
|
title_info
|
str or None
|
Title for the identification summary panel. |
None
|
txt_line_height
|
float
|
Text line height used when |
0.55
|
*args
|
Additional positional arguments forwarded to the underlying plotting routine. |
()
|
|
**kws
|
Extra keyword arguments forwarded to the underlying plotting routine. |
{}
|
Returns:
| Type | Description |
|---|---|
tuple
|
Result of |
Examples:
>>> G = DAG(graph="X -> Y")
>>> G.identification_analysis(exposure="X", outcome="Y", verbose=False)
>>> result = G.plot_identification(show_plot=False)
Source code in causalinf/gcm.py
2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 | |