| bars | R Documentation |
Documents the aliases, aesthetics, and qualifiers for the bar geom.
bar
bars
x
y
theta
r
color
horizontal: orients the bars horizontally.
unstacked: doesn't stack overlapping bars.
vertical: orients the bars vertically.
library(duckdb)
con <- dbConnect(duckdb())
dbWriteTable(con, "cars", cars)
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
bin(miles_per_gallon) as y,
count(*) as x
from cars
group by
bin(miles_per_gallon)
using horizontal bars
")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.