Skip to contents

This is useful if you want to combine a formatted table with a plot in a multi-panel patchwork.

Usage

gg_formatted_table(
  longFormatTable,
  colWidths = NULL,
  tableWidthInches = 5.9,
  font = "Roboto",
  ...
)

Arguments

longFormatTable

a table - usually converted using as.long_format_table()

colWidths

(optional) the relative widths of the columns.

tableWidthInches

the maximum desired width of the plot. Text will be scaled to fit this width.

font

the default font family

...

passed to as.long_format_table if and only if the input is not already in that format.

Value

a ggplot object containing the table as a ggplot.