Uses the design of a lineplot to visualize feature dynamics over time across a grouping variable of interest.
plotTimeLineplot(
object,
variables,
across = "condition",
across_subset = NULL,
relevel = NULL,
summarize_with = "mean",
phase = NULL,
linesize = 1,
scales = "free_y",
nrow = NULL,
ncol = NULL,
smooth = TRUE,
smooth_method = "loess",
smooth_span = 0.25,
smooth_se = FALSE,
display_vline = TRUE,
vline_clr = "lightgrey",
vline_type = "dashed",
clrp = "milo",
verbose = TRUE,
...,
in_shiny = FALSE
)
object | A valid cypro object. |
---|---|
variables | Character vector. Denotes the track variables whoose summary you
want to display over time. Use |
across | Character value, character vector or NULL (see details for more). Specifies the grouping variable of interest. Use |
across_subset | Character vector or NULL. Specifies the particular groups
of interest the grouping variable specified in argument If set to NULL all of them are chosen. You can prefix groups you are NOT interested in with a '-'. (Saves writing if there are more groups you are interested in than groups you are not interested in.) Use |
relevel | Logical value. If set to TRUE the input order of |
summarize_with | Character value. One of 'mean', 'median', 'max' or 'min'. |
phase | Character or numeric. If character, the ordinal value referring to the phase of interest (e.g. 'first', 'second' etc.). referring to the phase of interest or 'all'. If numeric, the number referring to the phase. If set to NULL takes the phase denoted as default with Ignored if the experiment design contains only one phase. |
linesize | Numeric value. Denotes the size of the lines drawn. |
scales | Given to |
nrow | Given to |
ncol | Given to |
smooth | Logical. If set to TRUE the values are smoothed. |
smooth_method | Character value. Denotes the model type used to display the line. Defaults to
'lm' (linear model). Given to argument |
smooth_span | NUmeric value. Denotes the smoothing span used. |
smooth_se | Logical. If set to TRUE the standard error will be displayed. |
display_vline | Logical value. If set to TRUE and more than one phase is referred to a vertical line is displayed hihglighting the phase separation. |
vline_clr | Character value. Color of the vertical line. |
vline_type | Character value. Defaults to 'dashed'. |
clrp | Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
verbose | Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
A ggplot.