Skip to content

Graph and Compare Distributions

2 messages · Vasilis Bardakos, Jeff Newmiller

#
Dear Sirs,
I'm trying to demonstrate and compare my data first digit distributions in comparison with benford's law, but I cannot figure out how do a correct ggplot histogram. plot() works fine though.
The data are the following (probabilities):
[1] 0.37101911 0.17515924 0.08917197 0.08121019 0.06210191 0.06050955 0.07484076 0.03662420 0.04936306
[2] 0.524419536 0.253002402 0.092073659 0.032826261 0.025620496 0.019215372 0.008807046 0.012009608 0.032025620

These are my data first digit probabilities, while below there is the original distribution which would be represented with a smooth line:
[3] 0.30103000 0.17609126 0.12493874 0.09691001 0.07918125 0.06694679 0.05799195 0.05115252 0.04575749

Kind Regards,V. Bardakos
#
Please post your code. Read the Posting Guide, which points out that you need to put the code in the body of your email and make sure the email is sent in plain text format (a setting in your mail software).

This is not a "do your work for you" mailing list.