Class: Rust::Plots::DistributionPlot

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

Overview

Represents any distribution-related plot (e.g., boxplots).

Direct Known Subclasses

AdjustedBoxplot, BoxPlot, DensityPlot

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

#initializeDistributionPlot

Returns a new instance of DistributionPlot.



9
10
11
12
# File 'lib/rust/plots/distribution-plots.rb', line 9

def initialize
    super()
    @series = []
end

Instance Method Details

#series(data, **options) ⇒ Object

Adds a series of data points. options can be specified and directly passed to the R plotting function.



17
18
19
20
21
# File 'lib/rust/plots/distribution-plots.rb', line 17

def series(data, **options)
    @series << [data, options]
    
    return self
end