Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.dagitty

Plot Graph


Description

A simple plot method to quickly visualize a graph. This is intended mainly for simple visualization purposes and not as a full-fledged graph drawing function.

Usage

## S3 method for class 'dagitty'
plot(
  x,
  abbreviate.names = FALSE,
  show.coefficients = FALSE,
  adjust.coefficients = NA,
  ...
)

Arguments

x

the input graph, a DAG, MAG, or PDAG.

abbreviate.names

logical. Whether to abbreviate variable names.

show.coefficients

logical. Whether to plot coefficients defined in the graph syntax on the edges.

adjust.coefficients

numerical. Adjustment for coefficient labels; the distance between the edge labels and the midpoint of the edge can be controlled using this paramer. Can also be a vector of 2 numbers for separate horizontal and vertical adjustment. NA means no adjustment (default).

...

not used.


dagitty

Graphical Analysis of Structural Causal Models

v0.3-1
GPL-2
Authors
Johannes Textor, Benito van der Zander, Ankur Ankan
Initial release
2021-01-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.