| dbGetPlot | R Documentation |
dbGetPlot takes a database connection and a SGL statement
and returns the corresponding plot.
dbGetPlot(con, sgl_stmt)
con |
A database connection (as returned by |
sgl_stmt |
A SGL statement (string) |
The plot defined by the SGL statement (a sgl_plot object)
library(duckdb)
con <- dbConnect(duckdb())
dbWriteTable(con, "cars", cars)
p <- dbGetPlot(con, "
visualize
horsepower as x,
miles_per_gallon as y
from cars
using points
")
print(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.