Learn R Programming

animation (version 0.2-0)

sample.system: Demonstration for systematic sampling

Description

The whole sample frame is denoted by a matrix (nrow * ncol) in the plane, and the sample points with equal intervals are drawn out according to a random starting point. The points being sampled are marked by red circles.

Usage

sample.system(nrow = 10, ncol = 10, size = 15, 
    control = ani.control(interval = 0.2), ...)

Arguments

nrow
the desired number of rows of the sample frame.
ncol
the desired number of columns of the sample frame.
size
the sample size.
control
control parameters for the animation; see ani.control
...
other arguments passed to ani.control

Value

  • None (invisible `NULL').

References

Cochran, W G (1977) Sampling Techniques, Wiley, ISBN 0-471-16240-X

See Also

sample

Examples

Run this code
sample.system()

# HTML animation page
ani.start()
sample.system(nrow = 5, size = 12, saveANI = TRUE)
ani.stop()

Run the code above in your browser using DataLab