R/geom_histogram_interactive.R

Defines functions geom_histogram_interactive

Documented in geom_histogram_interactive

#' @title Create interactive histograms and frequency polygons
#'
#' @description
#' The geometries are based on [ggplot2::geom_histogram()]
#' and [ggplot2::geom_freqpoly()].
#' See the documentation for those functions for more details.
#'
#' This interactive version is only providing a single tooltip per
#' group of data (same for `data_id`). It means it is only possible
#' to associate a single tooltip to a set of bins.
#'
#' @param ... arguments passed to base function,
#' plus any of the [interactive_parameters].
#' @inheritSection interactive_parameters Details for interactive geom functions
#' @examples
#' # add interactive histogram -------
#' @example examples/geom_histogram_interactive.R
#' @seealso [girafe()]
#' @export
geom_histogram_interactive <- function(...)
  layer_interactive(geom_histogram, ...)
davidgohel/ggiraph documentation built on June 11, 2025, 11:37 p.m.