View source: R/sampling_interactive.R
interactive_sampling | R Documentation |
Interactive visualization to sample from a population and see how a given sampling statistic (theta) is distributed.
interactive_sampling() After running, click on the gears in the top-left of the plotting area to draw more samples or change simulation parameters.
population |
A |
sample_size |
The size of each sample to draw from the population |
theta |
The |
## Not run: interactive_sampling(rnorm(100000)) interactive_sampling(c(rnorm(100000, mean = 4), rnorm(100000, mean=-4)), theta = median) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.