table_labeller: Creates a table formatted as a ggplot labeller object.

Description Usage Arguments Details

View source: R/axis_table.R

Description

table_labeller returns a function which can be used as the label parameter in scale_x_discrete or scale_y_discrete.

Usage

1
2
3
4
5
6
table_labeller(
  .data,
  axis_col,
  selected_cols = colnames(.data),
  col_widths = NULL
)

Arguments

.data

Data containing both the x/y aesthetic of the original data, as well as the columns which should be included in the table.

axis_col

Character. The name or index of the column used for the x or y aesthetic.

selected_cols

Character. The columns which should be used in the table.

col_widths

Numeric vector. The desired width (in characters) of each column.

Details

This function is not usually used directly, but is called from axis_table.


nicokist/ggaxistable documentation built on June 3, 2021, 9:57 a.m.