Class: Rust::Plots::GGPlot::ThemeLegendBuilder

Inherits:
ThemeComponentBuilder show all
Defined in:
lib/rust/external/ggplot2/themes.rb

Instance Method Summary collapse

Methods inherited from ThemeComponentBuilder

#[], #alignment_el, #build, #line_el, #numeric_el, #option, #rect_el, #text_el, #unit_el

Constructor Details

#initializeThemeLegendBuilder

Returns a new instance of ThemeLegendBuilder.



313
314
315
# File 'lib/rust/external/ggplot2/themes.rb', line 313

def initialize
    super("legend")
end

Instance Method Details

#background(value) ⇒ Object



325
326
327
# File 'lib/rust/external/ggplot2/themes.rb', line 325

def background(value)
    self.option('background', rect_el(value))
end

#justification(value) ⇒ Object



321
322
323
# File 'lib/rust/external/ggplot2/themes.rb', line 321

def justification(value)
    self.option('justification', value)
end

#key_background(value) ⇒ Object



329
330
331
# File 'lib/rust/external/ggplot2/themes.rb', line 329

def key_background(value)
    self.option('key', rect_el(value))
end

#key_height(value) ⇒ Object



337
338
339
# File 'lib/rust/external/ggplot2/themes.rb', line 337

def key_height(value)
    self.option('key.height', unit_el(value))
end

#key_size(value) ⇒ Object



333
334
335
# File 'lib/rust/external/ggplot2/themes.rb', line 333

def key_size(value)
    self.option('key.size', unit_el(value))
end

#key_width(value) ⇒ Object



341
342
343
# File 'lib/rust/external/ggplot2/themes.rb', line 341

def key_width(value)
    self.option('key.width', unit_el(value))
end

#margin(value) ⇒ Object



345
346
347
# File 'lib/rust/external/ggplot2/themes.rb', line 345

def margin(value)
    self.option('margin', unit_el(value))
end

#position(value) ⇒ Object



317
318
319
# File 'lib/rust/external/ggplot2/themes.rb', line 317

def position(value)
    self.option('position', value)
end

#text(value) ⇒ Object



349
350
351
# File 'lib/rust/external/ggplot2/themes.rb', line 349

def text(value)
    self.option('text', text_el(value))
end

#text_align(value) ⇒ Object



353
354
355
# File 'lib/rust/external/ggplot2/themes.rb', line 353

def text_align(value)
    self.option('text.align', alignment_el(value))
end

#title(value) ⇒ Object



357
358
359
# File 'lib/rust/external/ggplot2/themes.rb', line 357

def title(value)
    self.option('title', text_el(value))
end

#title_align(value) ⇒ Object



361
362
363
# File 'lib/rust/external/ggplot2/themes.rb', line 361

def title_align(value)
    self.option('key.size', alignment_el(value))
end