Description Usage Arguments Details Value References Examples
Creates a density plot with mean and standard deviation annotations.
1 | population_dist(mu = 0, std = 1, n = 100)
|
mu |
population mean |
std |
population standard deviation |
n |
integer; sample size |
This function aims to show that the mean, standard deviation, and sample size of the distribution can influence the distribution's shape and size.
Creates density plot with annotations plus prints out mean and standard deviation
Krzywinski, Martin, and Naomi Altman. "Points of significance: Importance of being uncertain." Nature Methods 10.9 (2013): 809-810.
1 2 3 4 | population_dist() # Mean = 0, Stdev = 1, N = 100
population_dist(mu = 2) # Mean = 2, Stdev = 1, N = 100
population_dist(mu = 1, std = 3) # Mean = 1, Stdev = 3, N = 100
population_dist(std = 3, n = 10) # Mean = 0, Stdev = 3, N = 10
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.