In [1]:
(require gamble
"c3_helpers.rkt")
In [2]:
(scatter-c3 '(1 2 3 4 5 5.5 6) '(8.2 7 5 4 3 2.5 0.9)
#:xlabel "cans of spinach consumed" #:ylabel "fights lost to Bluto")
Out[2]:
In [3]:
(line-c3 '(1 2 3 4 5 5.5 6) '(8.2 7 5 4 3 2.5 0.9)
#:xlabel "cans of spinach consumed" #:ylabel "fights lost to Bluto")
Out[3]:
In [4]:
(bar-c3 '(1 2 3 4 5 5.5 6) '(8.2 7 5 4 3 2.5 0.9)
#:xlabel "cans of spinach consumed" #:ylabel "fights lost to Bluto")
Out[4]:
In [ ]:
sbs-hist-vals returns a list containing three lists:
bin-edges, of length one greater than the optional input, n-bins. For $i$ less than or equal to n-bins, the $i$th element is the (inclusive) lower bound of the $i$th bin. The last element is the upper bound of the n-bins-th bin. All upper bounds are non-inclusive (strictly less than).bin-centers, of length n-bins. The $i$-th element is the average of the lower and upper bounds of of bin $i$.counts, the $i$th element of which is the number of elements of vals in the $i$th bin.
In [ ]:
In [ ]:
In [5]:
(require math/distributions)
(hist-c3 (sample (exponential-dist) 100))
Out[5]:
In [6]:
(multi-line-c3 '((5 6 7 8) (5.5 6 7.5 8)) '((9 8 6 4) (10 12 13 14.7)))
Out[6]:
In [ ]:
TODO:
In [7]:
(multi-reg-line-plus-scatter-c3
'((0 10) (0 10) (0 10) (0 10) (0 10) (0 10) (0 10))
'((3 7) (4 6.1) (3.5 6.8) (3.2 6.6) (3.38 7) (3.3 6.25) (3.6 6.7))
'(1 3 4 7 8 9)
'(4 4.1 5.5 6 7 6.6))
Out[7]:
In [ ]: