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_bar.ex
Raw

lib/mix/tasks/doc_examples/geom_bar.ex

defmodule GGity.Docs.Geom.Bar do
@moduledoc false
@doc false
@spec examples() :: iolist()
def examples do
[
"""
Examples.mpg()
|> Plot.new(%{x: "class"})
|> Plot.geom_bar()
""",
"""
Examples.mpg()
|> Plot.new(%{x: "class"})
|> Plot.geom_bar(%{fill: "drv"})
"""
]
end
end