Skip to contents

Main functions

tab()
Cross-tables with color helpers
tab_reg()
All-in-one tables for regressions, with each modelled effect beside its observed one
tab_counts()
Cross-tables from already-aggregated counts

Point-and-click interface (jamovi)

The two analyses tabxplor adds to jamovi – everything the package does, driven by menus. Install jamovi, open the modules menu (the + at the top-right), choose jamovi library, and install tabxplor.

jmvtab()
Crosstables
jmvtabreg()
Regressions

Reshaping and combining

Change the shape of a finished table; nothing is recomputed.

tab_spread()
Turn a sub-table variable into columns
tab_compact()
Bind a list of tables into one
tab_transpose()
Swap the rows and columns of a cross-table

Export a finished table

tab_export()
Export a table to html, Excel or Markdown (wrapper)
tab_html() tab_kable()
Render a table as html
tab_md()
Render a table as Markdown
tab_xl()
Write a table to an Excel workbook
tab_css()
The stylesheet an html table needs

Charts

(Both need ggplot2.)

forest_plot()
Forest plot of any tabxplor table
reg_check_plots()
Diagnostic plots of a regression model

Data-prep and text helpers

Small utilities for preparing data or laying out a table.

score_from_lv1()
Score a set of factors by counting their first level
shape_numeric_var()
Cut or transform a numeric variable
tab_wrap_text()
Wrap column names and long labels
tab_parallel_stop()
Stop the tabxplor parallel worker pool

Superseded entry points

They still work and give the same numbers; tab() has absorbed all three, and scale + pct_type have absorbed the fourth.

tab_many() superseded
Many cross-tables as one, with color helpers
tab_num() superseded
Means table
tab_plain() superseded
Plain single cross-table
set_type() get_type() superseded
Column types, the tabxplor 1.x spelling

What a cell shows, and how it is coloured

The vocabulary of display =, then of color =.

tabxplor-display
What a table cell shows: the display grammar
set_color_palette() set_color_style() get_color_style() set_color_breaks() get_color_breaks()
Colours: palettes, styles and breaks
conf_level_to_z()
Convert confidence levels into z thresholds

What a model can be, and what it fitted

reg_measures()
What can this outcome be modelled as?
reg_formulas()
The model formulas a regression table fitted

Options

Every default lives in a tabxplor.* option.

tabxplor-options tabxplor.options
The tabxplor options, and their defaults

Inspect a table

What have I got? – the table as a whole, then column by column.

tab_structure() experimental
The structure of a table
tab_columns() experimental
Every fmt column of a table, and what it carries
get_test()
Read a table's statistical tests
is_tab()
Is this a tabxplor table?
as.matrix(<tabxplor_tab>) as.table(<tabxplor_tab>)
Hand a table to base R

The type system

What a table and its cells are made of: the tabxplor_fmt vctrs record behind every numeric cell, where a field varies from cell to cell and an attribute holds for a whole column, and the attributes the table itself carries.