Class: Rust::Plots::GGPlot::Geom

Inherits:
Layer show all
Defined in:
lib/rust/external/ggplot2/geoms.rb

Instance Method Summary collapse

Methods inherited from Layer

#option, #to_R

Constructor Details

#initialize(type, arguments = [], **options) ⇒ Geom

Returns a new instance of Geom.



5
6
7
8
9
# File 'lib/rust/external/ggplot2/geoms.rb', line 5

def initialize(type, arguments = [], **options)
    super("geom_#{type}", **options)
    @type = type
    @arguments = Rust::Arguments.new(arguments)
end