R/savePairs.R

Defines functions savePairs

Documented in savePairs

#' Save a pairs plot to an HTML file
#'
#' Save a pairsD3 graph to an HTML file for sharing with others. The HTML can
#' include it's dependencies in an adjacent directory or can bundle all
#' dependencies into the HTML file (via base64 encoding).
#'
#' @param pairs plot to save (e.g. result of calling the function
#'   \code{pairsD3}).
#'
#' @inheritParams htmlwidgets::saveWidget
#'
#' @export
savePairs <- function(pairs, file, selfcontained = TRUE) {
  htmlwidgets::saveWidget(pairs, file, selfcontained)
}

Try the pairsD3 package in your browser

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

pairsD3 documentation built on June 7, 2022, 1:09 a.m.