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 [geom_histogram()]
#' and [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, ...)

Try the ggiraph package in your browser

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

ggiraph documentation built on March 31, 2023, 9:53 p.m.