This example demonstrates how a histogram can be created with statsample.
The 'histogram' function creates a histogram by using the Statsample::Graph::Histogram
class. This class accepts data in a Daru::Vector (as created by
A line showing normal distribution can be drawn by setting the
option to true.
require 'statsample' include Statsample::Shorthand h = histogram(rnorm(3000,0,20), line_normal_distribution: true) h