dbVisuals

dbVisuals builds linked, interactive visualizations of tabular and database-backed data in R, from DuckDB databases and data files, including spatial data. It has two entry points:

Installation

install.packages("dbVisuals")

# development version
install.packages("dbVisuals",
                 repos = c("https://dbverse-org.r-universe.dev",
                           "https://cloud.r-project.org"))

Getting started

library(dbVisuals)

dashboard <- launchBrowser()                          # standalone, in the browser
# dashboard <- launchBrowser(db_path = "data.duckdb") # an existing DuckDB database
stop_sqlrooms(dashboard)

Close any other connection that writes to a database before opening it with launchBrowser(). The browser components load DuckDB-WASM from a public CDN, so they need internet access.

See vignette("getting-started", package = "dbVisuals"), ?launchBrowser and ?mosaic_gl for more.

Learn more