using VegaLite, VegaDatasets
dataset("barley") |>
@vlplot(y="variety:o") +
@vlplot(
mark={
:point,
filled=true
},
x={
"mean(yield)",
scale={zero=false},
title="Barley Yield"
},
color={value=:black}
) +
@vlplot(
mark={
:errorbar,
extent=:ci
},
x={:yield, title="Barley Yield"}
)
using VegaLite, VegaDatasets
dataset("barley") |>
@vlplot(
y="variety:o"
) +
@vlplot(
mark={
:point,
filled=true
},
x={
"mean(yield)",
scale={zero=false},
title="Barley Yield"
},
color={value=:black}
) +
@vlplot(
mark={:errorbar, extend=:stdev},
x={:yield, title="Barley Yield"}
)
using VegaLite, VegaDatasets
dataset("cars") |>
@vlplot(x="year(Year)") +
@vlplot(
mark={:errorband, extent=:ci},
y={
:Miles_per_Gallon,
title="Mean of Miles per Gallon (95% CIs)"
}
) +
@vlplot(
:line,
y="mean(Miles_per_Gallon)"
)
using VegaLite, VegaDatasets
dataset("cars") |>
@vlplot() +
@vlplot(
:point,
x=:Horsepower,
y=:Miles_per_Gallon
) +
@vlplot(:rule,y="mean(Miles_per_Gallon)") +
@vlplot(
mark={:errorband, extent=:stdev, opacity=0.2},
y={:Miles_per_Gallon, title="Miles per Gallon"}
)