Learn R Programming

rattle (version 3.0.2)

plotBenfordsLaw: Plot a chart comparing Benford's Law with a supplied numeric vertor

Description

Plots a barchart of Benford's Law and the distribution of the frequencies of the first digit of the numbers supplied as the argument.

Usage

plotBenfordsLaw(l)

Arguments

l
a vector of numbers to compare to Benford's Law.

References

Package home page: http://rattle.togaware.com

Examples

Run this code
# A simple example using the audit data from Rattle.
data(audit)
plotBenfordsLaw(audit$Income)

Run the code above in your browser using DataLab