Giggly.Geom.Ribbon (giggly v0.2.0)

Copy Markdown View Source

Ribbons: a band through each group's rows, between each row's ymin and ymax along x, or its xmin and xmax along y, filled with its fill at its alpha and outlined in its color, linewidth and linetype along the edges outline_type: names. A row missing a position it needs breaks the band. Its setup puts the rows in order along the band and records which way it runs.

Its options are orientation: (:x, :y, or :none, which reads the range given), outline_type: (:both, :upper, :lower or :full), lineend:, linejoin: and linemitre:. Build one with Giggly.Geom.new(Giggly.Geom.Ribbon, options), so each option left out takes its default. A geom drawing by delegation sets its rows up through it and draws them through it (Giggly.Geom).

Summary

Types

Which of a ribbon's edges are outlined, ggplot2's outline.type.

t()

Functions

A ribbon from options validated against options/0.

The options a ribbon is built from, as a NimbleOptions schema: which way it runs, which edges it outlines, and its line ends, corners and mitre limit.

Types

outline_type()

@type outline_type() :: :both | :upper | :lower | :full

Which of a ribbon's edges are outlined, ggplot2's outline.type.

t()

@opaque t()

Functions

new(options)

@spec new(keyword()) :: t()

A ribbon from options validated against options/0.

options()

@spec options() :: keyword()

The options a ribbon is built from, as a NimbleOptions schema: which way it runs, which edges it outlines, and its line ends, corners and mitre limit.