R/geom_quantile_interactive.R

Defines functions geom_quantile_interactive

Documented in geom_quantile_interactive

#' @title Create interactive quantile regression
#'
#' @description
#' The geometry is based on [geom_quantile()].
#' See the documentation for those functions for more details.
#'
#' @param ... arguments passed to base function,
#' plus any of the [interactive_parameters].
#' @inheritSection interactive_parameters Details for interactive geom functions
#' @examples
#' # add interactive quantiles to a ggplot -------
#' @example examples/geom_quantile_interactive.R
#' @seealso [girafe()]
#' @export
geom_quantile_interactive <- function(...)
  layer_interactive(geom_quantile, ...)

#' @rdname ggiraph-ggproto
#' @format NULL
#' @usage NULL
#' @export
GeomInteractiveQuantile <- ggproto(
  "GeomInteractiveQuantile",
  GeomInteractivePath,
  default_aes = add_default_interactive_aes(GeomQuantile),
  parameters = interactive_geom_parameters
)

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.