Description Usage Arguments Value Examples
Plots the distributions of the sample means from the population.
1 | plot_sampling_dist(pop, n = 1e+05, size = c(2, 5, 30), facets = FALSE)
|
pop |
Vector containing the population (anything over 10,000 will take a long time to run on most ocmputers) |
n |
Number of replicas of each sample |
size |
Vector containing sizes for each sampling distribution |
facets |
Set to TRUE if you want plot each distribution on a separate facet |
ggplot2 plot object
1 2 3 | x <- runif(10000)
plot_sampling_dist(x, facets = TRUE)
plot_sampling_dist(x, n = 1e6, size = c(2, 10, 50, 100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.