Skip to content

Commit 7b8b8c0

Browse files
committed
feat: tm_g_association
1 parent 72b5d05 commit 7b8b8c0

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

R/tm_g_distribution.R

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,26 @@
2929
#'
3030
#' @section Decorating `tm_outliers`:
3131
#'
32-
#' This module generates the following objects, which can be modified in place using decorators:
33-
#' - `plot` (`ggplot2`)
32+
#' This module generates the following objects, which can be modified in place using decorators::
33+
#' - `plot` (`ggplot2`)`
3434
#' - `test_table` (`data.frame`)
3535
#' - `summary_table` (`data.frame`)
3636
#'
37+
#' The `decorators` can be specific for the `histogram` and `decorators` outputs
38+
#' within the module, which can be specified by using a named list.
39+
#' See code snippet below:
40+
#'
41+
#' ```
42+
#' tm_g_distribution(
43+
#' ..., # arguments for module
44+
#' decorators = list(
45+
#' default = list(teal_transform_module(...)), # applied to outputs of both `histogram` and `qq`
46+
#' histogram = list(teal_transform_module(...)), # applied to outputs of `histogram`
47+
#' qq = list(teal_transform_module(...)) # applied to outputs of `qq`
48+
#' )
49+
#' )
50+
#' ```
51+
#'
3752
#' For additional details and examples of decorators, refer to the vignette
3853
#' `vignette("decorate-modules-output", package = "teal")` or the [`teal_transform_module()`] documentation.
3954
#'

man/tm_g_distribution.Rd

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)