model_tree_png: Save an interactive 'model_tree()' as a PNG and load in...

View source: R/model-tree.R

model_tree_pngR Documentation

Save an interactive model_tree() as a PNG and load in Rstudio viewer

Description

Save an interactive model_tree() as a PNG and load in Rstudio viewer

Usage

model_tree_png(widget)

Arguments

widget

an HTML widget

Details

This function first saves and renders widget as HTML. It then screenshots the webpage and saves the file to a temporary PNG. The PNG is loaded in as an array and all data is re-packaged to be print like a ggplot object.


metrumresearchgroup/bbr documentation built on March 29, 2025, 1:08 p.m.