dataframe-viz-1.3.1.0: Visualisation/plotting helpers for the dataframe ecosystem.
Safe HaskellNone
LanguageHaskell2010

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

Aggregation

data Agg Source #

Aggregation strategy for grouped/categorical plots.

Constructors

Count

Count rows per group; ignores the value column.

Sum

Sum of value column per group.

Mean

Arithmetic mean of value column per group.

Median

Median of value column per group.

Min

Minimum of value column per group.

Max

Maximum of value column per group.

Instances

Instances details
Show Agg Source # 
Instance details

Defined in DataFrame.Display.Internal.Common

Methods

showsPrec :: Int -> Agg -> ShowS #

show :: Agg -> String #

showList :: [Agg] -> ShowS #

Eq Agg Source # 
Instance details

Defined in DataFrame.Display.Internal.Common

Methods

(==) :: Agg -> Agg -> Bool #

(/=) :: Agg -> Agg -> Bool #

Output

Layout

data Size Source #

Display dimensions for the chart, in pixels.

Constructors

Size 

Fields

Bar charts

data Bar Source #

Constructors

Bar 

Fields

Histograms

data Histogram Source #

Constructors

Histogram 

Fields

Scatter plots

data Scatter Source #

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.

Constructors

Scatter 

Fields

Line charts

data Line Source #

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.

Constructors

Line 

Fields

Pie charts

data Pie Source #

Constructors

Pie 

Fields

Box plots

data Box Source #

Constructors

Box 

Fields

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