Method: Nyaplot::CircularPlot#add_connector_with_df

Defined in:
lib/bionya/plot.rb

#add_connector_with_df(df, from, to) ⇒ Diagram

Add connector to the plot

Parameters:

  • df (DataFrame)
  • from (Symbol)

    the column label

  • to (Symbol)

    the column label

Returns:



52
53
54
55
56
# File 'lib/bionya/plot.rb', line 52

def add_connector_with_df(df, from, to)
  diagram = Diagram.new(df, :connector, [from, to])
  self.diagrams.push(diagram)
  return diagram
end