# File sparklines.rb, line 94
        def Sparklines.plot(results=[], options={})
                defaults = {  :type => 'smooth',
                                :height => 14,
                                :upper => 50,
                                :diameter => 20,
                                :step => 2,
                                :line_color => 'lightgrey',

                                :above_color => 'red',
                                :below_color => 'grey',
                                :background_color => 'white',
                                :share_color => 'blue',
                                :remain_color => 'lightgrey',
                                :min_color => 'blue',
                                :max_color => 'green',      
                                :last_color => 'red',                                                               

                                :has_min => false,
                                :has_max => false,
                                :has_last => false
                                                        }
                        
                # This symbol->string->symbol is kind of awkward. Is there a more elegant way?
                        
                # Convert all symbol keys to strings
                defaults.keys.reverse.each do |key|
                        defaults[key.to_s] = defaults[key]
                end
                options.keys.reverse.each do |key|
                        options[key.to_s] = options[key]
                end

                options  = defaults.merge(options)

                # Convert options string keys back to symbols
                options.keys.reverse.each do |key|
                        options[key.to_sym] = options[key]
                end

                
                # Call the appropriate function for actual plotting
                #self.send('smooth', results, options)
                self.send(options[:type], results, options)
        end