hist_digits: Histogram of distribution of digits

View source: R/hist_digits.R

hist_digitsR Documentation

Histogram of distribution of digits

Description

The 'hist_digits()' function generates a histogram that visualizes the distribution of the digits.

Usage

hist_digits(data, variable, group = NULL, decimal_place = 1)

Arguments

data

A data frame

variable

A numeric variable that includes decimals.

group

~ A second variable used to group the primary variable such that histograms are generated separately for each group.

decimal_place

The decimal place for which to generate the histogram. The default is set to one but any place may be specified by numeric rank, i.e. "1" for the 1st decimal (tenths), "2" for the 2nd decimal (hundreds), etc.

Value

A plot

Examples

hist_digits(simulated_normal, obs, ~group)



josh-mc/fabricated documentation built on April 25, 2022, 1:31 p.m.