hist_digits | R Documentation |
The 'hist_digits()' function generates a histogram that visualizes the distribution of the digits.
hist_digits(data, variable, group = NULL, decimal_place = 1)
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. |
A plot
hist_digits(simulated_normal, obs, ~group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.