This notebook describes the plots you can make with Gruff in Daru.
require 'daru'
Lets change the plotting library to Gruff.
Daru.plotting_library = :gruff
dv = Daru::Vector.new [1, 2, 3]
dv.plot do |p|
p.title = 'lol'
end
dv.plot type: :pie
dv.plot type: :line
dv.plot type: :scatter
dv = Daru::Vector.new [:a, :a, :a, :b, :b, :b, :c, :c], type: :category
dv.plot
dv.plot type: :bar, method: :fraction
dv.plot type: :pie do |p|
p.title = 'category plot'
end