using VegaLite, VegaDatasets
dataset("cars") |>
@vlplot(:rect, y=:Origin, x="Cylinders:o", color="mean(Horsepower)")
using VegaLite, VegaDatasets
dataset("seattle-temps") |>
@vlplot(
title="2010 Daily Max Temperature (F) in Seattle, WA",
:rect,
x={
"date:o",
timeUnit=:date,
title="Day",
axis={labelAngle=0,format="%e"}
},
y={
"date:o",
timeUnit=:month,
title="Month"
},
color={
"temp:q",
aggregate="max",
legend={title=nothing}
},
config={
view={
strokeWidth=0,
step=13
},
axis={
domain=false
}
}
)
using VegaLite, VegaDatasets
dataset("movies") |>
@vlplot(
:rect,
width=300, height=200,
x={:IMDB_Rating, bin={maxbins=60}},
y={:Rotten_Tomatoes_Rating, bin={maxbins=40}},
color="count()",
config={
view={
stroke="transparent"
}
}
)