sample.cluster {animation} | R Documentation |
Every rectangle stands for a cluster, and the simple random sampling without replacement is performed for each cluster. All points in the clusters being sampled will be drawn out.
sample.cluster(pop = ceiling(10 * runif(10, 0.2, 1)), size = 3, control = ani.control(interval = 0.2), ...)
pop |
a vector for the size of each cluster in the population. |
size |
the number of clusters to be drawn out. |
control |
control parameters for the animation; see ani.control |
... |
other arguments passed to ani.control |
None (invisible `NULL
').
Yihui Xie
Cochran, W G (1977) Sampling Techniques, Wiley, ISBN 0-471-16240-X
sample.cluster() ## Not run: # HTML animation page ani.start() sample.cluster(pop = sample(15, 5), size = 2, saveANI = TRUE) ani.stop() ## End(Not run)