Learn R Programming

TeachingDemos (version 2.13)

run.hist.demo: Create a histogram and interactively change the number of bars.

Description

Create a histogram then use a Tk slider window to change the number of bars, the minimum, and the maximum.

Usage

run.hist.demo(x)

Value

No meaninful value is returned.

Arguments

x

Data to plot.

Author

Greg Snow 538280@gmail.com

Details

Draws a histogram and creates a Tk slider window that allows you to explore how changing the parameters affects the appearance of the plot.

See Also

hist, slider

Examples

Run this code
if(interactive()){
run.hist.demo( rnorm(250, 100, 5) )
}

Run the code above in your browser using DataLab