Re: [racket-users] Transforming data for plot / discreet-histogram

2016-06-07 Thread Ben Greenman
For now, you can use sequence-map to turn the hashtable into a sequence of vectors. #lang racket (require math) (require plot) (discrete-histogram (sequence-map vector (in-hash (samples->hash '(1 2 3 4 4) But it would be nicer if discrete-histogram took a hash as input. On Tue, Jun 7,

[racket-users] Transforming data for plot / discreet-histogram

2016-06-07 Thread Sean Kemplay
Hello, Something like the following would be ideal to build a histogram from a sequence of values read in via CSV #lang racket (require math) (require plot) (discrete-histogram (samples->hash '(1 2 3 4 4))) However discreet histogram takes a list of vectors. Is there a way to achieve