Learn R Programming

modelsummary (version 2.3.0)

Histogram: datasummary statistic shortcut

Description

This function uses Unicode characters to create a histogram. This can sometimes be useful, but is generally discouraged. Unicode characters can only display a limited number of heights for bars, and the accuracy of output is highly dependent on the platform (typeface, output type, windows vs. mac, etc.). We recommend you use the tinytable::plot_tt() function instead.

Usage

Histogram(x, bins = 10)

Arguments

x

variable to summarize

bins

number of histogram bars