ggparallel {ggEDA} | R Documentation |
Parallel Coordinate Plots
Description
Visualize relationships between numeric variables and categorical groupings using parallel coordinate plots.
Usage
ggparallel(
data,
col_id = NULL,
col_colour = NULL,
highlight = NULL,
interactive = TRUE,
order_columns_by = c("appearance", "random", "auto"),
order_observations_by = c("frequency", "original"),
verbose = TRUE,
palette_colour = palette.colors(palette = "Set2"),
palette_highlight = c("red", "grey90"),
convert_binary_numeric_to_factor = TRUE,
scaling = c("uniminmax", "none"),
return = c("plot", "data"),
options = ggparallel_options()
)
Arguments
data |
A data frame containing the variables to plot. |
col_id |
The name of the column to use as an identifier. If |
col_colour |
Name of the column to use for coloring lines in the plot. If |
highlight |
A level from |
interactive |
Produce interactive ggiraph visualiastion (flag) |
order_columns_by |
Strategy for ordering columns in the plot. Options include:
|
order_observations_by |
Strategy for ordering lines in the plot. Options include:
Ignored if |
verbose |
Logical; whether to display informative messages during execution. (default: |
palette_colour |
A named vector of colors for categorical levels in |
palette_highlight |
A two-color vector for highlighting ( |
convert_binary_numeric_to_factor |
Logical; whether to convert numeric columns containing only 0, 1, and NA to factors. (default: |
scaling |
Method for scaling numeric variables. Options include:
|
return |
What to return. Options include:
|
options |
A list of additional visualization parameters created by |
Value
A ggplot object or a processed data frame, depending on the return
parameter.
Examples
ggparallel(
data = minibeans,
col_colour = "Class",
order_columns_by = "auto"
)
ggparallel(
data = minibeans,
col_colour = "Class",
highlight = "DERMASON",
order_columns_by = "auto"
)
# Customise appearance using options argument
ggparallel(
data = minibeans,
col_colour = "Class",
order_columns_by = "auto",
options = ggparallel_options(show_legend = FALSE)
)