Subsets columns to only use the ones relevant to the graph.

select_graph_columns(data, group)

Arguments

data

[tibble()]
Data to modify.

group

[character(1)]
Name of a currently selected attribute (if none, empty string).

Value

A tibble with a set of selected and possibly renamed columns.