View source: R/rough_convert.R
add_svgs_to_table | R Documentation |
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
add_svgs_to_table(chart_container, width = NULL, height = NULL)
chart_container |
A chart_container |
A chart_container with svg key added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.