| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.Display.Web.Plot
Description
A plotly-express-style one-shot plotting API for HTML output: the string-keyed
convenience tier emitting interactive Vega-Lite charts. For the composable
expression-based grammar see DataFrame.Display.Web.Chart and its .Typed.
Synopsis
- data Agg
- showInDefaultBrowser :: String -> IO ()
- data Size = Size {}
- defaultSize :: Size
- data Bar = Bar {}
- mkBar :: Text -> Bar
- bar :: HasCallStack => Bar -> DataFrame -> IO String
- data Histogram = Histogram {}
- mkHistogram :: Text -> Histogram
- histogram :: HasCallStack => Histogram -> DataFrame -> IO String
- data Scatter = Scatter {}
- mkScatter :: Text -> Text -> Scatter
- scatter :: HasCallStack => Scatter -> DataFrame -> IO String
- data Line = Line {}
- mkLine :: Text -> [Text] -> Line
- line :: HasCallStack => Line -> DataFrame -> IO String
- data Pie = Pie {}
- mkPie :: Text -> Pie
- pie :: HasCallStack => Pie -> DataFrame -> IO String
- data Box = Box {}
- mkBox :: [Text] -> Box
- box :: HasCallStack => Box -> DataFrame -> IO String
- allHistograms :: HasCallStack => DataFrame -> IO String
- plotHistogram :: HasCallStack => Text -> DataFrame -> IO String
- plotScatter :: HasCallStack => Text -> Text -> DataFrame -> IO String
- plotBars :: HasCallStack => Text -> DataFrame -> IO String
- plotLines :: HasCallStack => Text -> [Text] -> DataFrame -> IO String
- plotPie :: HasCallStack => Text -> Maybe Text -> DataFrame -> IO String
- plotBoxPlots :: HasCallStack => [Text] -> DataFrame -> IO String
Aggregation
Aggregation strategy for grouped/categorical plots.
Output
showInDefaultBrowser :: String -> IO () Source #
Layout
Display dimensions for the chart, in pixels.
defaultSize :: Size Source #
Bar charts
Histograms
mkHistogram :: Text -> Histogram Source #
Scatter plots
includeZero anchors both axes at zero. Off by default so the axes fit
the data — otherwise points far from the origin (e.g. geographic coordinates)
get squashed against the chart edge.
Line charts
includeZero anchors the axes at zero (Vega-Lite's own default). Off
by default so the axes fit the data — a line is position-encoded, so a
forced zero baseline only squashes series far from the origin.
Pie charts
Box plots
Whole-frame plots
allHistograms :: HasCallStack => DataFrame -> IO String Source #
Concatenate a histogram for every numeric column in the frame. Useful as a one-shot exploratory summary.
Deprecated legacy entry points
plotHistogram :: HasCallStack => Text -> DataFrame -> IO String Source #
Deprecated: use 'histogram (mkHistogram col)' instead
plotScatter :: HasCallStack => Text -> Text -> DataFrame -> IO String Source #
Deprecated: use 'scatter (mkScatter xCol yCol)' instead
plotBars :: HasCallStack => Text -> DataFrame -> IO String Source #
Deprecated: use 'bar (mkBar col)' instead
plotLines :: HasCallStack => Text -> [Text] -> DataFrame -> IO String Source #
Deprecated: use 'line (mkLine xCol yCols)' instead
plotPie :: HasCallStack => Text -> Maybe Text -> DataFrame -> IO String Source #
Deprecated: use 'pie (mkPie col)' instead
plotBoxPlots :: HasCallStack => [Text] -> DataFrame -> IO String Source #
Deprecated: use 'box (mkBox cols)' instead