Class: Rust::Plots::DistributionPlot
- Defined in:
- lib/rust/plots/distribution-plots.rb
Overview
Represents any distribution-related plot (e.g., boxplots).
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ DistributionPlot
constructor
A new instance of DistributionPlot.
-
#series(data, **options) ⇒ Object
Adds a series of data points.
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 ⇒ DistributionPlot
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, **) @series << [data, ] return self end |