Creates a valid expression to generate a ggplot2::ggplot() line plot.
template_g_lineplot(
dataname = "ANL",
strata = "ARM",
x = "AVISIT",
y = "AVAL",
y_unit = "AVALU",
paramcd = "PARAMCD",
param = "ALT",
mid = "mean",
interval = "mean_ci",
whiskers = c("mean_ci_lwr", "mean_ci_upr"),
table = c("n", "mean_sd", "median", "range"),
mid_type = "pl",
conf_level = 0.95,
incl_screen = TRUE,
mid_point_size = 2,
table_font_size = 4,
title = "Line Plot",
y_lab = "",
ggplot2_args = teal.widgets::ggplot2_args()
)a list of expressions to generate a table or plot object.
(character)
analysis data used in teal module.
(character or NA)
deprecated - group variable name.
(character)
x variable name.
(character)
y variable name.
(character or NA)
y_unit variable name.
(character or NA)
paramcd variable name.
(character)
parameter to filter the data by.
(character or NULL)
names of the statistics that will be plotted as midpoints.
All the statistics indicated in mid variable must be present in the object returned by sfun,
and be of a double or numeric type vector of length one.
(character or NULL)
names of the statistics that will be plotted as intervals.
All the statistics indicated in interval variable must be present in the object returned by sfun,
and be of a double or numeric type vector of length two. Set interval = NULL if intervals should not be
added to the plot.
(character)
names of the interval whiskers that will be plotted. Names must match names
of the list element interval that will be returned by sfun (e.g. mean_ci_lwr element of
sfun(x)[["mean_ci"]]). It is possible to specify one whisker only, or to suppress all whiskers by setting
interval = NULL.
(character or NULL)
names of the statistics that will be displayed in the table below the plot.
All the statistics indicated in table variable must be present in the object returned by sfun.
(character)
controls the type of the mid plot, it can be point (p), line (l),
or point and line (pl).
(numeric)
value for the confidence level within the range of (0, 1).
(logical)
whether the screening visit should be included.
(integer or double)
controls the font size of the point for mid plot.
(integer or double)
controls the font size of values in the table.
(character)
plot title.
(character)
y-axis label. If equal to NULL, then no label will be added.
optional, (ggplot2_args)
object created by teal.widgets::ggplot2_args() with settings
for the module plot. For this module, this argument will only accept ggplot2_args object with labs list of
following child elements: title, subtitle, caption, y, lty. No other elements would be taken into
account. The argument is merged with option teal.ggplot2_args and with default module arguments (hard coded in
the module body).
For more details, see the vignette: vignette("custom-ggplot2-arguments", package = "teal.widgets").
tm_g_lineplot()