Class: Charty::Plotters::BoxPlotter

Inherits:
CategoricalPlotter show all
Defined in:
lib/charty/plotters/box_plotter.rb

Instance Attribute Summary collapse

Attributes inherited from CategoricalPlotter

#dodge, #group_label, #group_names, #order, #orient, #plot_data, #saturation, #value_label, #width

Attributes included from EstimationSupport

#ci, #estimator, #n_boot, #units

Attributes included from RandomSupport

#random

Attributes inherited from AbstractPlotter

#color, #color_order, #data, #key_color, #palette, #title, #x, #x_label, #y, #y_label

Instance Method Summary collapse

Methods included from EstimationSupport

check_estimator

Methods included from RandomSupport

check_random

Methods inherited from AbstractPlotter

#inspect, #processed_data, #render, #save, #to_iruby, #to_iruby_mimebundle, #var_levels

Constructor Details

#initialize(data: nil, variables: {}, **options, &block) ⇒ BoxPlotter

Returns a new instance of BoxPlotter.



7
8
9
10
# File 'lib/charty/plotters/box_plotter.rb', line 7

def initialize(data: nil, variables: {}, **options, &block)
  x, y, color = variables.values_at(:x, :y, :color)
  super(x, y, color, data: data, **options, &block)
end

Instance Attribute Details

#flier_sizeObject

Returns the value of attribute flier_size.



12
13
14
# File 'lib/charty/plotters/box_plotter.rb', line 12

def flier_size
  @flier_size
end

#line_widthObject

Returns the value of attribute line_width.



18
19
20
# File 'lib/charty/plotters/box_plotter.rb', line 18

def line_width
  @line_width
end

#whiskerObject

Returns the value of attribute whisker.



24
25
26
# File 'lib/charty/plotters/box_plotter.rb', line 24

def whisker
  @whisker
end