Skip to content

Commit 2e77e2a

Browse files
pre-release tm_outliers document update (#653)
part of #624
1 parent 91d9e02 commit 2e77e2a

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

R/tm_outliers.R

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
#' Outliers Module
1+
#' Outliers module
22
#'
33
#' Module to analyze and identify outliers using different methods
4+
#' such as IQR, Z-score, and Percentiles, and offers visualizations including
5+
#' box plots, density plots, and cumulative distribution plots to help interpret the outliers.
46
#'
57
#' @inheritParams teal::module
68
#' @inheritParams shared_params
79
#'
810
#' @param outlier_var (`data_extract_spec` or `list` of multiple `data_extract_spec`)
9-
#' variable to consider for the outliers analysis.
10-
#' @param categorical_var (`data_extract_spec` or `list` of multiple `data_extract_spec`)
11-
#' categorical factor to split the selected outlier variables on.
11+
#' Specifies variable(s) to be analyzed for outliers.
12+
#' @param categorical_var (`data_extract_spec` or `list` of multiple `data_extract_spec`, optional)
13+
#' Specifies the categorical variable(s) to split the selected outlier variables on.
1214
#'
1315
#' @templateVar ggnames "Boxplot","Density Plot","Cumulative Distribution Plot"
1416
#' @template ggplot2_args_multi
1517
#'
1618
#' @examples
17-
#' # general data example
1819
#' library(teal.widgets)
1920
#'
21+
#' # general data example
2022
#' data <- teal_data()
2123
#' data <- within(data, {
2224
#' CO2 <- CO2
@@ -67,8 +69,6 @@
6769
#' }
6870
#'
6971
#' # CDISC data example
70-
#' library(teal.widgets)
71-
#'
7272
#' data <- teal_data()
7373
#' data <- within(data, {
7474
#' ADSL <- rADSL
@@ -169,6 +169,7 @@ tm_outliers <- function(label = "Outliers Module",
169169
)
170170
}
171171

172+
# UI function for the outliers module
172173
ui_outliers <- function(id, ...) {
173174
args <- list(...)
174175
ns <- NS(id)
@@ -300,6 +301,7 @@ ui_outliers <- function(id, ...) {
300301
)
301302
}
302303

304+
# Server function for the outliers module
303305
srv_outliers <- function(id, data, reporter, filter_panel_api, outlier_var,
304306
categorical_var, plot_height, plot_width, ggplot2_args) {
305307
with_reporter <- !missing(reporter) && inherits(reporter, "Reporter")

man/tm_outliers.Rd

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

0 commit comments

Comments
 (0)