Add a new set of cognostic groups for a given plot layer. If the plot layer is found, the corresponding cognostic groups will be calculated.
add_layer_cogs(name, description, cog_groups, kind = "ggplot", ...)
Name of plot layer. This should match the output of the "name"
values of layer_info
Description of cognostic group
A data.frame
(or tibble
) containing the columns: "cog_group", "cols", "name". "cog_group" column should contain a string value of a known cognostic group. "cols" should be a single value or vector of column names to use from the data supplied by layer_info
during calculations. "name" should contain the final storage name of the cognostic group.
String value that will match the output of plot_class
of the desired plot object
ignored