These functions display the distribution of numeric
variables for the whole sample or in a comparative manner if argument
across
is specified. plotViolinplot()
and plotBoxplot
allow for statistical tests such as t-test or ANOVA.
plotBoxplot(
object,
variables,
phase = NULL,
across = NULL,
across_subset = NULL,
relevel = TRUE,
clrp = "milo",
clrp_adjust = NULL,
test_groupwise = NULL,
test_pairwise = NULL,
ref_group = NULL,
step_increase = 0.01,
vjust = 0,
display_facets = TRUE,
scales = "free",
nrow = NULL,
ncol = NULL,
display_points = FALSE,
pt_alpha = 0.8,
pt_clr = "black",
pt_num = 100,
pt_size = 1.25,
pt_shape = 21,
verbose = TRUE,
...
)
plotDensityplot(
object,
variables,
phase = NULL,
across = NULL,
across_subset = NULL,
relevel = NULL,
clrp = "milo",
clrp_adjust = NULL,
display_facets = TRUE,
scales = "free",
nrow = NULL,
ncol = NULL,
verbose = TRUE,
...
)
plotHistogram(
object,
variables,
phase = NULL,
across = NULL,
across_subset = NULL,
relevel = TRUE,
clrp = "milo",
clrp_adjust = NULL,
scales = "free",
nrow = NULL,
ncol = NULL,
verbose = TRUE,
...
)
plotRidgeplot(
object,
variables,
phase = NULL,
across = NULL,
across_subset = NULL,
relevel = TRUE,
alpha = 0.8,
clrp = "milo",
clrp_adjust = NULL,
scales = "free",
nrow = NULL,
ncol = NULL,
verbose = TRUE,
...
)
plotViolinplot(
object,
variables,
phase = NULL,
across = NULL,
across_subset = NULL,
relevel = TRUE,
clrp = "milo",
clrp_adjust = NULL,
test_groupwise = NULL,
test_pairwise = NULL,
ref_group = NULL,
step_increase = 0.01,
display_facets = TRUE,
vjust = 0,
scales = "free",
nrow = NULL,
ncol = NULL,
display_points = FALSE,
pt_alpha = 0.8,
pt_clr = "black",
pt_num = 100,
pt_size = 1.25,
pt_shape = 21,
verbose = TRUE,
...
)
object | A valid cypro object. |
---|---|
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. |
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 |
clrp | Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
clrp_adjust | Named character vector or NULL. If character, it adjusts the color palette that is used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group. |
test_groupwise | Character value or NULL. Specifies the groupwise statistical test to be conducted. If character, one of 'anova', 'kruskal.test'. If set to NULL the testing is skipped. |
test_pairwise | Character value or NULL. Specifies the pairwise statistical test to be conducted. If character, one of 't.test', 'wilcox.test'. If set to NULL the testing is skipped. |
ref_group | Character value or NULL. Specifies the reference group against
which all other groups are compared in the test denoted in |
step_increase | Numeric value. Denotes the increase in fraction of total height for every additional comparison to minimize overlap. |
vjust | Numeric value. Denotes the relative, vertical position of the results of
the test denoted in |
display_facets | Logical value. If set to TRUE the plot is split via
|
scales | Given to |
nrow | Given to |
ncol | Given to |
display_points | Logical value. If set to TRUE points are used additionally to display the results. |
pt_alpha | Numeric value. Specifies the degree of transparency of all points. |
pt_clr | Character value. Specifies the color of all points. |
pt_size | Numeric value. Specifies the size of all points. |
verbose | Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
... | Additional arguments given to the respective |
A ggplot.