R/charm.R

Defines functions tr_charm

Documented in tr_charm

#' Use fidelius to password protect a trelliscope display
#' @param x an object of class "facet_trelliscope" or 
#' "trelliscopejs_widget"
#' @param ... arguments passed to [fidelius::charm()]
#' @export
tr_charm <- function(x, ...) {
  if (!inherits(x, c("facet_trelliscope", "trelliscopejs_widget")))
    stop("Can only call tr_charm() on a trelliscope object")
  attr(x, "fidelius_pars") <- list(...)
  x
}

Try the trelliscopejs package in your browser

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

trelliscopejs documentation built on Aug. 8, 2025, 6:40 p.m.