hgg
A grammar of graphics plotting library for Haskell
view on Hackage
The batteries-included entry point for hgg, a Haskell-native declarative
plotting library in the grammar-of-graphics tradition (ggplot2 /
Vega-Lite). Plots are built by monoid composition and can be bound to
dataframes by column name.
.
Depending on this package brings in the core (@hgg-core@), the dataframe
binding (@hgg-frame@) and the SVG backend (@hgg-svg@), and exposes a
single module "Graphics.Hgg" — one @import Graphics.Hgg@ gives you the
Easy API, the full grammar API, the @df |>> spec@ binding and SVG save
functions.
.
> import Graphics.Hgg
>
> main :: IO ()
> main = quickScatter "scatter.svg" [1,2,3,4,5] [1,4,9,16,25]
.
Optional backends are pulled in via manual cabal flags: @pdf@
(@hgg-pdf@), @png@ (@hgg-rasterific@), @latex@ (@hgg-latex@), @3d@
(@hgg-3d@). Their modules (e.g. "Graphics.Hgg.Backend.PDF") are imported
from the backend packages directly. Alternatively, depend on the backend
packages themselves — this umbrella is a convenience, not a requirement.
| version | uploaded | uploader | | changes |
|---|
| 0.2.0.0 | 2026-08-13 04:19 UTC | frenzieddoll | | +37/−29 lines, 3 filesdep ~hgg-3ddep ~hgg-coredep ~hgg-framePVP ok |
| 0.1.0.0 | 2026-07-18 16:51 UTC | frenzieddoll | | +370/−0 lines, 5 filesdep +basedep +hgg-3ddep +hgg-core |
Dependencies of hgg-0.2.0.0
base >=4.17 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
hgg-3d ==0.2.0.0 0.1.0.0 → 0.2.0.0
| 2026-08-13 04:18 UTC | 0.2.0.0 | +1269/−457 lines, 15 filesdep ~hgg-coredep ~hgg-framedep ~hgg-pdfPVP ok |
| 2026-07-18 16:51 UTC | 0.1.0.0 outside bounds | +10869/−0 lines, 21 filesdep +aesondep +basedep +bytestring |
hgg-core ==0.2.0.0 0.1.0.0 → 0.2.0.0
| 2026-08-13 04:18 UTC | 0.2.0.0 | +14362/−7144 lines, 39 filesPVP ok |
| 2026-07-18 16:51 UTC | 0.1.0.0 outside bounds | +20794/−0 lines, 41 filesdep +aesondep +basedep +bytestring |
hgg-frame ==0.2.0.0 0.1.0.0 → 0.2.0.0
| 2026-08-13 04:18 UTC | 0.2.0.0 | +102/−49 lines, 3 filesdep ~hgg-corePVP ok |
| 2026-07-18 16:51 UTC | 0.1.0.0 outside bounds | +318/−0 lines, 5 filesdep +basedep +containersdep +hgg-core |
hgg-latex ==0.2.0.0 0.1.0.0 → 0.2.0.0
| 2026-08-13 04:18 UTC | 0.2.0.0 | +282/−79 lines, 4 filesdep ~hgg-coredep ~hgg-framePVP ok |
| 2026-07-18 16:51 UTC | 0.1.0.0 outside bounds | +792/−0 lines, 6 filesdep +basedep +hgg-coredep +hgg-frame |
hgg-pdf ==0.2.0.0 0.1.0.0 → 0.2.0.0
| 2026-08-13 04:18 UTC | 0.2.0.0 | +193/−53 lines, 4 filesdep ~hgg-coredep ~hgg-framePVP ok |
| 2026-07-18 16:51 UTC | 0.1.0.0 outside bounds | +511/−0 lines, 5 filesdep +HPDFdep +basedep +bytestring |
hgg-rasterific ==0.2.0.0 0.1.0.0 → 0.2.0.0
| 2026-08-13 04:18 UTC | 0.2.0.0 | +387/−87 lines, 4 filesdep ~hgg-coredep ~hgg-framePVP ok |
| 2026-07-18 16:51 UTC | 0.1.0.0 outside bounds | +648/−0 lines, 5 filesdep +FontyFruitydep +JuicyPixelsdep +Rasterific |
hgg-svg ==0.2.0.0 0.1.0.0 → 0.2.0.0
| 2026-08-13 04:18 UTC | 0.2.0.0 | +332/−77 lines, 8 filesdep ~aesondep ~bytestringdep ~containersPVP ok |
| 2026-07-18 16:51 UTC | 0.1.0.0 outside bounds | +3727/−0 lines, 25 filesdep +aesondep +basedep +bytestring |
Reverse dependencies
no known reverse dependencies