@hackage tdigest-Chart0.2
Chart generation from tdigest
Categories
License
BSD-3-Clause
Maintainer
Oleg Grenrus <oleg.grenrus@iki.fi>
Links
Versions
Installation
Tested Compilers
Dependencies (8)
- Chart >=1.8.3 && <1.10
- base >=4.7 && <4.15
- base-compat >=0.10.1 && <0.12
- colour >=2.3.3 && <2.4
- lens >=4.15.4 && <4.20
- semigroupoids >=5.2.2 && <5.4 Show all…
Dependents (1)
@hackage/acme-everything
tdigest-Chart
Examples
These are outputs of the test-suite
inkscape --export-png=example1.png --export-dpi=80 --export-background-opacity=0 --without-gui example1.svg
inkscape --export-png=example2.png --export-dpi=80 --export-background-opacity=0 --without-gui example2.svg
Standard normal distribution
Chart.layout_title Chart..= "Normal distribution"
Chart.plot $ do
p <- Chart.tdigestPlot "tdigest" td
return $ Chart.tdigestToPlot $ p
& Chart.plot_tdigest_normalize .~ True
& Chart.plot_tdigest_deviations .~ Just 3

Chi-squared distribution, k = 5
Chart.layout_title Chart..= "Chi-squared distribution, k = 5"
Chart.plot $ do
p <- Chart.tdigestPlot "tdigest" td
return $ Chart.tdigestToPlot $ p
& Chart.plot_tdigest_normalize .~ True
& Chart.plot_tdigest_quantiles .~ [0.5, 0.9, 0.999]
