Formatting tables

Override or extend these methods if you want to customize the appearance of your tibble-like object.

print(<tbl>) format(<tbl>)

Formatting of tbl objects

tbl_format_setup()

Set up formatting

tbl_format_header()

Format the header of a tibble

tbl_format_body()

Format the body of a tibble

tbl_format_footer()

Format the footer of a tibble

ctl_new_pillar() ctl_new_compound_pillar()

Customize your tibble subclass

tbl_sum()

Provide a succinct summary of an object

glimpse()

Get a glimpse of your data

format_glimpse()

Format a vector for horizontal printing

Formatting pillars

Functions and methods to implement pillar support for your data type.

pillar()

Object for formatting a vector suitable for tabular display

new_pillar()

Construct a custom pillar object

new_pillar_component() pillar_component()

Components of a pillar

pillar_shaft() print(<pillar_shaft>) format(<pillar_shaft>)

Column data

new_pillar_shaft() new_pillar_shaft_simple()

Constructor for column data

type_sum() obj_sum() size_sum()

Provide a succinct summary of an object

format_type_sum()

Format a type summary

Styling

For consistent output of different data types.

style_num() style_subtle() style_subtle_num() style_bold() style_na() style_neg()

Styling helpers

align()

Alignment helper

get_extent() get_max_extent()

Calculate display width

new_ornament()

Helper to define the contents of a pillar

new_pillar_title()

Prepare a column title for formatting

new_pillar_type()

Prepare a column type for formatting

Miscellaneous

dim_desc()

Format dimensions

pillar-package

pillar: Coloured Formatting for Columns