DAG Labels | R Documentation |
Label or otherwise retrieve labels from objects of either class
tidy_dagitty
or dagitty
label(x) <- value
## S3 replacement method for class 'dagitty'
label(x) <- value
## S3 replacement method for class 'tidy_dagitty'
label(x) <- value
dag_label(.tdy_dag, labels = NULL)
label(.tdy_dag)
has_labels(.tdy_dag)
x |
an object of either class |
value |
a character vector |
.tdy_dag |
an object of class |
labels |
a character vector |
label
returns the label attribute of x
labelled_dag <- dagify(y ~ z, x ~ z) %>%
tidy_dagitty() %>%
dag_label(labels = c("x" = "exposure", "y" = "outcome", "z" = "confounder"))
has_labels(labelled_dag)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.