Skip to contents

Get a readable label for the AvonCap data as a named list (for ggplot)

Usage

readable_label_mapping(x, ...)

# S3 method for class 'data.frame'
readable_label_mapping(x, colNames = default_column_names(...), ...)

# S3 method for class 'list'
readable_label_mapping(x, colNames = default_column_names(...), ...)

# S3 method for class 'character'
readable_label_mapping(x, colNames = default_column_names(...), ...)

# Default S3 method
readable_label_mapping(x, colNames = default_column_names(...), ...)

Arguments

x

either the column names as strings, or a dataframe

...

ignored

colNames

a mapping to convert a column name (as a string) to a readable label

Value

a named list of the labels for the columns

Methods (by class)

  • readable_label_mapping(data.frame): for data frames

  • readable_label_mapping(list): for lists

  • readable_label_mapping(character): for character vectors

  • readable_label_mapping(default): defaults