Method: Nyaplot::CircularPlot#initialize

Defined in:
lib/bionya/plot.rb

#initialize(df, group_label, nested_label) ⇒ CircularPlot

Returns a new instance of CircularPlot.

Parameters:

  • df (DataFrame)
  • group_label (Symbol)

    The column which contains names of groups

  • nested_label (Symbol)

    The column which contains dataframe



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/bionya/plot.rb', line 27

def initialize(df, group_label, nested_label)
  super()
  @df = df
  @inner_num = 0
  @outer_num = 1
  @nested_label = nested_label

  set_property(:axis_extra_options, {})
  group_by(group_label)
  color(['#253494'])
  extension('Bionya')
end