From 4c5ef39db9cd91e9c7ee89f7398134b539dc931b Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 4 Aug 2024 01:07:05 +0200 Subject: [PATCH] docs --- R/plot.check_dag.R | 7 +++++++ man/plot.see_check_dag.Rd | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/R/plot.check_dag.R b/R/plot.check_dag.R index ebdd8eea9..8e3c743b8 100644 --- a/R/plot.check_dag.R +++ b/R/plot.check_dag.R @@ -41,6 +41,13 @@ #' adjusted = "c" #' ) #' plot(dag) +#' +#' # longer labels, automatic detection of outcome and exposure +#' dag <- check_dag( +#' QoL ~ age + education + gender, +#' age ~ education +#' ) +#' plot(dag) #' @export plot.see_check_dag <- function(x, size_point = 20, diff --git a/man/plot.see_check_dag.Rd b/man/plot.see_check_dag.Rd index 2366094d5..e291ca83a 100644 --- a/man/plot.see_check_dag.Rd +++ b/man/plot.see_check_dag.Rd @@ -63,5 +63,12 @@ dag <- check_dag( adjusted = "c" ) plot(dag) + +# longer labels, automatic detection of outcome and exposure +dag <- check_dag( + QoL ~ age + education + gender, + age ~ education +) +plot(dag) \dontshow{\}) # examplesIf} }