Skip to contents

Plot Functions

Functions that return ggplot2 objects ready to display or customize. All calculations run in the database.

dbplot_histogram()
Histogram
dbplot_bar()
Bar plot
dbplot_line()
Line plot
dbplot_raster()
Raster plot
dbplot_boxplot()
Boxplot

Computation Functions

Functions that return data frames with aggregated data. Use these when you need custom plots or further data processing.

db_compute_bins()
Calculate histogram bins
db_compute_count()
Aggregates over a discrete field
db_compute_raster() db_compute_raster2()
Aggregates intersections of two variables
db_compute_boxplot()
Returns a dataframe with boxplot calculations

Utility Functions

Building blocks for creating custom database queries with binning.

db_bin()
Bin formula

Package Documentation

dbplot-package dbplot
dbplot: Simplifies Plotting Data Inside Databases