.check_plot_splitting_variables | R Documentation |
Checks and sanitizes splitting variables for plotting.
.check_plot_splitting_variables(
x,
split_by = NULL,
color_by = NULL,
linetype_by = NULL,
facet_by = NULL,
x_axis_by = NULL,
y_axis_by = NULL,
available = NULL
)
x |
data.table or data.frame containing the data used for splitting. |
split_by |
(optional) Splitting variables. This refers to column names on which datasets are split. A separate figure is created for each split. See details for available variables. |
color_by |
(optional) Variables used to determine fill colour of plot
objects. The variables cannot overlap with those provided to the |
linetype_by |
(optional) Variables that are used to determine the
linetype of lines in a plot. The variables cannot overlap with those
provided to the |
facet_by |
(optional) Variables used to determine how and if facets of
each figure appear. In case the |
x_axis_by |
(optional) Variable plotted along the x-axis of a plot.
The variable cannot overlap with variables provided to the |
y_axis_by |
(optional) Variable plotted along the y-axis of a plot.
The variable cannot overlap with variables provided to the |
available |
Names of columns available for splitting. |
This internal function allows some flexibility regarding the exact input. Allowed splitting variables should be defined by the available argument.
A sanitized list of splitting variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.