View source: R/digitPreference.R
plot.digitPreference | R Documentation |
plot()
helper function for digitPreference()
functionplot()
helper function for digitPreference()
function
## S3 method for class 'digitPreference'
plot(x, main = "", xlab = "Final Digit", ylab = "Frequency", cex = 0.75, ...)
x |
Object resulting from applying the |
main |
Title of plot |
xlab |
|
ylab |
|
cex |
Character expansion; default is 0.75 |
... |
Additional |
Plotted output of digitPreference()
function comparing the
frequencies of the various final digits
# Plot output of digit preference test applied to anthropometric data from a
# single state from a DHS survey in a West African country
svy <- dp.ex01
digitPreference(svy$wt, digits = 1)
plot(digitPreference(svy$wt, digits = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.