Class: Rust::Plots::GGPlot::ThemeLegendBuilder
Instance Method Summary
collapse
#[], #alignment_el, #build, #line_el, #numeric_el, #option, #rect_el, #text_el, #unit_el
Constructor Details
Returns a new instance of ThemeLegendBuilder.
322
323
324
|
# File 'lib/rust/external/ggplot2/themes.rb', line 322
def initialize
super("legend")
end
|
Instance Method Details
#background(value) ⇒ Object
334
335
336
|
# File 'lib/rust/external/ggplot2/themes.rb', line 334
def background(value)
self.option('background', rect_el(value))
end
|
#justification(value) ⇒ Object
330
331
332
|
# File 'lib/rust/external/ggplot2/themes.rb', line 330
def justification(value)
self.option('justification', value)
end
|
#key_background(value) ⇒ Object
338
339
340
|
# File 'lib/rust/external/ggplot2/themes.rb', line 338
def key_background(value)
self.option('key', rect_el(value))
end
|
#key_height(value) ⇒ Object
346
347
348
|
# File 'lib/rust/external/ggplot2/themes.rb', line 346
def key_height(value)
self.option('key.height', unit_el(value))
end
|
#key_size(value) ⇒ Object
342
343
344
|
# File 'lib/rust/external/ggplot2/themes.rb', line 342
def key_size(value)
self.option('key.size', unit_el(value))
end
|
#key_width(value) ⇒ Object
350
351
352
|
# File 'lib/rust/external/ggplot2/themes.rb', line 350
def key_width(value)
self.option('key.width', unit_el(value))
end
|
#margin(value) ⇒ Object
354
355
356
|
# File 'lib/rust/external/ggplot2/themes.rb', line 354
def margin(value)
self.option('margin', unit_el(value))
end
|
#position(value) ⇒ Object
326
327
328
|
# File 'lib/rust/external/ggplot2/themes.rb', line 326
def position(value)
self.option('position', value)
end
|
#text(value) ⇒ Object
358
359
360
|
# File 'lib/rust/external/ggplot2/themes.rb', line 358
def text(value)
self.option('text', text_el(value))
end
|
#text_align(value) ⇒ Object
362
363
364
|
# File 'lib/rust/external/ggplot2/themes.rb', line 362
def text_align(value)
self.option('text.align', alignment_el(value))
end
|
#title(value) ⇒ Object
366
367
368
|
# File 'lib/rust/external/ggplot2/themes.rb', line 366
def title(value)
self.option('title', text_el(value))
end
|
#title_align(value) ⇒ Object
370
371
372
|
# File 'lib/rust/external/ggplot2/themes.rb', line 370
def title_align(value)
self.option('key.size', alignment_el(value))
end
|