Class: Rust::Plots::GGPlot::Aes
- Defined in:
- lib/rust/external/ggplot2/core.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ Aes
constructor
A new instance of Aes.
- #to_R ⇒ Object
Constructor Details
#initialize(**options) ⇒ Aes
Returns a new instance of Aes.
42 43 44 45 |
# File 'lib/rust/external/ggplot2/core.rb', line 42 def initialize(**) = .map { |k, v| [k, v.is_a?(Symbol) ? Rust::Variable.new(v) : v] }.to_h = Rust::Options.from_hash() end |
Instance Method Details
#to_R ⇒ Object
47 48 49 50 51 |
# File 'lib/rust/external/ggplot2/core.rb', line 47 def to_R function = Rust::Function.new("aes") function. = if return function.to_R end |