Method: Rust::Plots::GGPlot::Plot#initialize

Defined in:
lib/rust/external/ggplot2/core.rb

#initialize(data, aes = nil) ⇒ Plot

Returns a new instance of Plot.



58
59
60
61
62
63
64
# File 'lib/rust/external/ggplot2/core.rb', line 58

def initialize(data, aes = nil)
    @layers = []
    
    @data = data
    @aes = aes
    @theme = Rust::Plots::GGPlot.default_theme
end