Class: Rust::Plots::BarPlot

Inherits:
BasePlot show all
Defined in:
lib/rust/plots/basic-plots.rb

Overview

Represents a bar plot in R.

Instance Method Summary collapse

Methods inherited from BasePlot

#[]=, #_add_renderable, #_do_not_override_options!, #axis, #color, #grid, #palette, #pdf, #show, #title, #x_label, #x_range, #y_label, #y_range

Constructor Details

#initialize(bars) ⇒ BarPlot

Creates a new bar plot with the given bars values.



122
123
124
125
# File 'lib/rust/plots/basic-plots.rb', line 122

def initialize(bars)
    super()
    @bars = bars
end