Skip to content

Commit 5fe302b

Browse files
authored
Standardise function titles similar to what we have in tmc (#691)
Closes #684 Changes: Titles now follow this format: ``` `teal` module: Function title ``` Additionally, moved the function params `alpha` and `size` to `shared_params` as they were used in 3 places. Note that the `tm_g_bivariate()` uses `size` param with a different meaning. We might want to think about function arg standardization in the future.
1 parent 882a8d0 commit 5fe302b

32 files changed

+69
-62
lines changed

R/tm_a_pca.R

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Principal component analysis module
1+
#' `teal` module: Principal component analysis
22
#'
33
#' Module conducts principal component analysis (PCA) on a given dataset and offers different
44
#' ways of visualizing the outcomes, including elbow plot, circle plot, biplot, and eigenvector plot.
@@ -9,12 +9,6 @@
99
#' @inheritParams shared_params
1010
#' @param dat (`data_extract_spec` or `list` of multiple `data_extract_spec`)
1111
#' specifying columns used to compute PCA.
12-
#' @param alpha (`numeric`, optional) Specifies point opacity.
13-
#' - If vector of `length == 1` then the plot points will have a fixed opacity.
14-
#' - while vector of `value`, `min`, and `max` allows dynamic adjustment.
15-
#' @param size (`numeric`, optional) Specifies point size.
16-
#' - If vector of `length == 1` then the plot point sizes will have a fixed size
17-
#' - while vector of `value`, `min`, and `max` allows dynamic adjustment.
1812
#' @param font_size (`numeric`, optional) Specifies font size.
1913
#' It controls the font size for plot titles, axis labels, and legends.
2014
#' - If vector of `length == 1` then the font sizes will have a fixed size.

R/tm_a_regression.R

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Scatterplot and regression model
1+
#' `teal` module: Scatterplot and regression analysis
22
#'
33
#' Module for visualizing regression analysis, including scatterplots and
44
#' various regression diagnostics plots.
@@ -14,14 +14,6 @@
1414
#' Regressor variables from an incoming dataset with filtering and selecting.
1515
#' @param response (`data_extract_spec` or `list` of multiple `data_extract_spec`)
1616
#' Response variables from an incoming dataset with filtering and selecting.
17-
#' @param alpha (`integer(1)` or `integer(3)`, optional) Specifies point opacity.
18-
#' - When the length of `alpha` is one: the plot points will have a fixed opacity.
19-
#' - When the length of `alpha` is three: the plot points opacity are dynamically adjusted based on
20-
#' vector of `value`, `min`, and `max`.
21-
#' @param size (`integer(1)` or `integer(3)`, optional) Specifies point size.
22-
#' - When the length of `size` is one: the plot point sizes will have a fixed size.
23-
#' - When the length of `size` is three: the plot points size are dynamically adjusted based on
24-
#' vector of `value`, `min`, and `max`.
2517
#' @param default_outlier_label (`character`, optional) The default column selected to label outliers.
2618
#' @param default_plot_type (`numeric`, optional) Defaults to Response vs Regressor.
2719
#' 1. Response vs Regressor

R/tm_data_table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Data table viewer module
1+
#' `teal` module: Data table viewer
22
#'
33
#' Module provides a dynamic and interactive way to view `data.frame`s in a `teal` application.
44
#' It uses the `DT` package to display data tables in a paginated, searchable, and sortable format,

R/tm_file_viewer.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' File viewer module
1+
#' `teal` module: File viewer
22
#'
33
#' The file viewer module provides a tool to view static files.
44
#' Supported formats include text formats, `PDF`, `PNG` `APNG`,

R/tm_front_page.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Front page module
1+
#' `teal` module: Front page
22
#'
33
#' Creates a simple front page for `teal` applications, displaying
44
#' introductory text, tables, additional `html` or `shiny` tags, and footnotes.

R/tm_g_association.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Stack plots of variables and show association with reference variable
1+
#' `teal` module: Stack plots of variables and show association with reference variable
22
#'
33
#' Module provides functionality for visualizing the distribution of variables and
44
#' their association with a reference variable.

R/tm_g_bivariate.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Univariate and bivariate visualizations module
1+
#' `teal` module: Univariate and bivariate visualizations
22
#'
33
#' Module enables the creation of univariate and bivariate plots,
44
#' facilitating the exploration of data distributions and relationships between two variables.

R/tm_g_distribution.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Distribution analysis module
1+
#' `teal` module: Distribution analysis
22
#'
33
#' Module is designed to explore the distribution of a single variable within a given dataset.
44
#' It offers several tools, such as histograms, Q-Q plots, and various statistical tests to

R/tm_g_response.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Response plot module
1+
#' `teal` module: Response plot
22
#'
33
#' Generates a response plot for a given `response` and `x` variables.
44
#' This module allows users customize and add annotations to the plot depending

R/tm_g_scatterplot.R

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Scatterplot module
1+
#' `teal` module: Scatterplot
22
#'
33
#' Generates a customizable scatterplot using `ggplot2`.
44
#' This module allows users to select variables for the x and y axes,
@@ -22,12 +22,6 @@
2222
#' Specifies the variable(s) for faceting rows.
2323
#' @param col_facet (`data_extract_spec` or `list` of multiple `data_extract_spec`, optional)
2424
#' Specifies the variable(s) for faceting columns.
25-
#' @param alpha (`numeric`, optional) Specifies point opacity.
26-
#' - If vector of `length == 1` then the plot points will have a fixed opacity.
27-
#' - while vector of `value`, `min`, and `max` allows dynamic adjustment.
28-
#' @param size (`numeric`, optional) Specifies point size.
29-
#' - If vector of `length == 1` then the plot point sizes will have a fixed size
30-
#' - while vector of `value`, `min`, and `max` allows dynamic adjustment.
3125
#' @param shape (`character`, optional) A character vector with the names of the
3226
#' shape, e.g. `c("triangle", "square", "circle")`. It defaults to `shape_names`. This is a complete list from
3327
#' `vignette("ggplot2-specs", package="ggplot2")`.

0 commit comments

Comments
 (0)