util_iframe_it_if_needed {dataquieR}R Documentation

Make it scalable, if it is a figure

Description

this function writes figures to helper files and embeds these in a returned object which is a scalable iframe. it does not change other objects in it.

Usage

util_iframe_it_if_needed(it, dir, nm, fkt, sizing_hints, ggthumb)

Arguments

it

htmltools::tag() compatible object

dir

character output directory for potential iframe.

nm

character name for the iframed file, if one is created

fkt

character function name of the indicator function that created ìt.

sizing_hints

object additional metadata about the natural figure size

ggthumb

ggplot2::ggplot() optional, underlying ggplot2 object for a preview

Value

htmltools::tag() compatible object, maybe now in an iframe


[Package dataquieR version 2.5.1 Index]