Points with error bars

Source code Author

using Deneb

data = Data(url="https://vega.github.io/vega-datasets/data/barley.json")

base = data * Encoding(y=:variety)

errors = Mark(:errorbar, extent=:stdev) * Encoding(
    x=field("yield:Q", scale=(;zero=false))
)

points = Mark(:point, filled=true, color=:black) * Encoding("mean(yield)")

chart = base * (errors + points)

This page was generated using DemoCards.jl and Literate.jl.