The examples on this page will use an in-memory DuckDB database loaded with data. Multiple datasets are used and the page is organized by the dataset being analyzed.
dbGetPlot(con, "
visualize
horsepower as x,
miles_per_gallon as y
from cars
using (
points
layer
regression line
)
facet by
origin
scale by
log(x),
log(y)
")dbGetPlot(con, "
visualize
bin(miles_per_gallon) as x,
count(*) as y
from cars
group by
bin(miles_per_gallon)
using bars
")dbGetPlot(con, "
visualize
origin as x,
miles_per_gallon as y
from cars
using boxes
scale by
log(y)
")