plot.mbias: Plot DAGs before and after conditioning on collider (M bias)
Description
Create two DAGs, before and after conditioning on the collider C, for selection
bias caused by M bias, using ggplot2.
Usage
## S3 method for class 'mbias':
plot(x, title1 = "DAG before conditioning on C",
title2 = "DAG after conditioning on C", title.size = 6, size = 6,
dec = 2, layout = c("landscape", "portrait"), ...)
Arguments
x
'mbias' object to plot.
title1
Title of DAG graph before conditioning on C.
title2
Title of DAG graph after conditioning on C.
title.size
Title size.
size
Text size.
dec
Number of digits displayed.
layout
Side-by-side graphs in landscape or portrait layout.