Class: Rust::Plots::GGPlot::ThemePanelBuilder
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 ThemePanelBuilder.
367
368
369
|
# File 'lib/rust/external/ggplot2/themes.rb', line 367
def initialize
super("panel")
end
|
Instance Method Details
#aspect_ratio(value) ⇒ Object
403
404
405
|
# File 'lib/rust/external/ggplot2/themes.rb', line 403
def aspect_ratio(value)
self.option('aspect.ratio', numeric_el(value))
end
|
#background(value) ⇒ Object
371
372
373
|
# File 'lib/rust/external/ggplot2/themes.rb', line 371
def background(value)
self.option('background', rect_el(value))
end
|
#border(value) ⇒ Object
375
376
377
|
# File 'lib/rust/external/ggplot2/themes.rb', line 375
def border(value)
self.option('border', rect_el(value))
end
|
#grid_major(value) ⇒ Object
379
380
381
|
# File 'lib/rust/external/ggplot2/themes.rb', line 379
def grid_major(value)
self.option('grid.major', line_el(value))
end
|
#grid_major_x(value) ⇒ Object
383
384
385
|
# File 'lib/rust/external/ggplot2/themes.rb', line 383
def grid_major_x(value)
self.option('grid.major.x', line_el(value))
end
|
#grid_major_y(value) ⇒ Object
387
388
389
|
# File 'lib/rust/external/ggplot2/themes.rb', line 387
def grid_major_y(value)
self.option('grid.major.y', line_el(value))
end
|
#grid_minor(value) ⇒ Object
391
392
393
|
# File 'lib/rust/external/ggplot2/themes.rb', line 391
def grid_minor(value)
self.option('grid.minor', line_el(value))
end
|
#grid_minor_x(value) ⇒ Object
395
396
397
|
# File 'lib/rust/external/ggplot2/themes.rb', line 395
def grid_minor_x(value)
self.option('grid.minor.x', line_el(value))
end
|
#grid_minor_y(value) ⇒ Object
399
400
401
|
# File 'lib/rust/external/ggplot2/themes.rb', line 399
def grid_minor_y(value)
self.option('grid.minor.y', line_el(value))
end
|
#margin(value) ⇒ Object
407
408
409
|
# File 'lib/rust/external/ggplot2/themes.rb', line 407
def margin(value)
self.option('margin', unit_el(value))
end
|
#margin_x(value) ⇒ Object
411
412
413
|
# File 'lib/rust/external/ggplot2/themes.rb', line 411
def margin_x(value)
self.option('margin.x', unit_el(value))
end
|
#margin_y(value) ⇒ Object
415
416
417
|
# File 'lib/rust/external/ggplot2/themes.rb', line 415
def margin_y(value)
self.option('margin.y', unit_el(value))
end
|