create_custom_legends | R Documentation |
Creates custom legend plots for cat_c
and group
.
create_custom_legends(
data,
cat_c,
group,
cat_c_colors,
group_colors,
var_positions,
num_vars,
dot_size
)
data |
The original data frame. |
cat_c |
The name of the |
group |
The name of the group variable. |
cat_c_colors |
A named vector of colors for |
group_colors |
A named vector of colors for the group variable. |
var_positions |
Data frame with variable positions. |
num_vars |
Number of variables in |
dot_size |
The size of the dots used in the plot. |
A combined ggplot object of the custom legends.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.