R/topic-boxes.R

#' Boxes
#'
#' Documents the aliases, aesthetics, and qualifiers for the box geom.
#'
#' @section Aliases:
#' - `box`
#' - `boxes`
#'
#' @section Aesthetics:
#' - `x`
#' - `y`
#' - `theta`
#' - `r`
#' - `color`
#'
#' @section Qualifiers:
#' - `horizontal`: orients the boxes horizontally.
#' - `vertical`: orients the boxes vertically.
#'
#' @examples
#' library(duckdb)
#' con <- dbConnect(duckdb())
#' dbWriteTable(con, "cars", cars)
#' dbGetPlot(con, "
#'   visualize
#'     origin as x,
#'     miles_per_gallon as y
#'   from cars
#'   using boxes
#' ")
#'
#' dbGetPlot(con, "
#'   visualize
#'     origin as y,
#'     miles_per_gallon as x
#'   from cars
#'   using horizontal boxes
#' ")
#'
#' @name boxes
NULL

Try the rsgl package in your browser

Any scripts or data that you put into this service are public.

rsgl documentation built on June 9, 2026, 1:07 a.m.