add_layer_cogs {autocogs}R Documentation

Add plot layer cognostics

Description

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.

Usage

add_layer_cogs(name, description, cog_groups, kind = "ggplot", ...)

Arguments

name

Name of plot layer. This should match the output of the "name" values of layer_info

description

Description of cognostic group

cog_groups

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.

kind

String value that will match the output of plot_class of the desired plot object

...

ignored


[Package autocogs version 0.1.4 Index]