add_svgs_to_table: Add svg to chart_container object

View source: R/rough_convert.R

add_svgs_to_tableR Documentation

Add svg to chart_container object

Description

This function add a 'svg' key containing a 'svg' version of the chart in the chart container. It uses the width and height of RStudio Viewer panel. There are no API to grab this information, so we use 'grDevices::dev.size' which should be in sync with the Viewer panel. We use 0.9 to add a 10 See: https://stackoverflow.com/a/41401158/2008527

Usage

add_svgs_to_table(chart_container, width = NULL, height = NULL)

Arguments

chart_container

A chart_container

Value

A chart_container with svg key added


xvrdm/ggrough documentation built on March 24, 2022, 5:42 a.m.