Class: Rust::Plots::GGPlot::AxisScaler

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

Instance Method Summary collapse

Methods inherited from Layer

#option, #to_R

Constructor Details

#initialize(axis, type = :continuous, **options) ⇒ AxisScaler

Returns a new instance of AxisScaler.



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

def initialize(axis, type = :continuous, **options)
    @axis = axis
    @type = type
    
    super("scale_#{@axis}_#{@type}", **options)
end