R/util_plot_figure_no_plotly.R

Defines functions util_plot_figure_no_plotly

Documented in util_plot_figure_no_plotly

#' Plot a `ggplot2` figure without `plotly`
#'
#' @param x [ggplot2] object
#'
#' @return `htmltools` compatible object
util_plot_figure_no_plotly <- function(x) {
  x <- htmltools::plotTag(x, "", width = 640)
  x
}

Try the dataquieR package in your browser

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

dataquieR documentation built on July 26, 2023, 6:10 p.m.