Method: Charty::PlotMethods#box_plot
- Defined in:
- lib/charty/plot_methods.rb
#box_plot(x: nil, y: nil, color: nil, data: nil, order: nil, color_order: nil, orient: nil, key_color: nil, palette: nil, saturation:, width:, dodge: true, flier_size: 5, line_width: nil, whisker: 1.5, **options, &block) ⇒ Object
Show the distributions of the given data by boxes and whiskers.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/charty/plot_methods.rb', line 109 def box_plot(x: nil, y: nil, color: nil, data: nil, order: nil, color_order: nil, orient: nil, key_color: nil, palette: nil, saturation: 1r, width: 0.8r, dodge: true, flier_size: 5, line_width: nil, whisker: 1.5, **, &block) Plotters::BoxPlotter.new( data: data, variables: { x: x, y: y, color: color }, order: order, color_order: color_order, orient: orient, key_color: key_color, palette: palette, saturation: saturation, width: width, dodge: dodge, flier_size: flier_size, line_width: line_width, whisker: whisker, **, &block ) end |