distribution-plot-1.0.0.0: Easily plot distributions from the distribution package..

Safe HaskellNone
LanguageHaskell98

Data.Distribution.Plot

Contents

Description

This module provides functions to plot distributions to files.

Synopsis

Plotting

plot :: (Show a, Ord a) => FilePath -> [Distribution a] -> IO () Source

Plots the given distributions to PNG file.

See plotWith for more options.

plotWith :: Ord a => PlotOptions a -> FilePath -> [Distribution a] -> IO () Source

Plots the given distributions to a file.

Options

data PlotOptions a Source

Options for plotting distributions.

Constructors

PlotOptions 

Fields

getAggregator :: Aggregator a

Aggregator to apply on the values. Defaults to identity.

getTitle :: String

Title of the plot. Defaults to the empty string.

getLabels :: [String]

Labels of the distributions. Defaults to [].

getColors :: [AlphaColour Double]

Colors for the distributions. Defaults to defaultColorSeq.

getDisplayer :: a -> String

How to display the values. Defaults to show.

getDimensions :: (Int, Int)

Dimension of the output image. Defaults to (600, 400).

getFormat :: FileFormat

Format of the output image. Defaults to PNG.

getExtraDomain :: Set a

Values to display unconditionally. Defaults to the empty set.

getStacked :: Bool

Whether to stack bars. Defaults to False.

getInversed :: Bool

True to put distributions on the x-axis, False to put values on the x-axis. Defaults to False.

Instances

Lenses