Skip to contents

Short wrapper that throws an error when conflict in colnames and plotting functions/helpers is spotted. The forbidden names are: ".label", ".guide", ".sig_val", ".categories", ".x_pos", "x_char", ".not_in_categories", ".order", ".not_colors", ".n_colors", ".text_nudge", ".text_pos", ".justification", ".h_just", ".v_just", ".textbox_params", ".group_by"

Usage

check_df_colnames(df)

Arguments

df

A data frame that is passed to plotting function.

Value

If any of the variables in data frame is in conflict with internals of g6tr_*_bar_plot() function or barplot helpers it throws and error.