Packages

GGity brings the familiar interface of R's ggplot2 library to SVG charting in Elixir.

Current section

Files

Jump to
ggity lib mix tasks doc_examples geom_line.ex
Raw

lib/mix/tasks/doc_examples/geom_line.ex

defmodule GGity.Docs.Geom.Line do
@moduledoc false
@doc false
@spec examples() :: iolist()
def examples do
[
"""
Examples.economics()
|> Plot.new(%{x: "date", y: "unemploy"})
|> Plot.geom_line()
""",
"""
Examples.economics_long()
|> Plot.new(%{x: "date", y: "value01", color: "variable"})
|> Plot.geom_line()
""",
"""
Examples.economics()
|> Plot.new(%{x: "date", y: "unemploy"})
|> Plot.geom_line(color: "red")
"""
]
end
end