add_theme_dependency | R Documentation |
Add the 'theme' dependency to an htmlwidget. You can only manipulate the htmlwidget if you call the method 'plot' with an rAmChart.
add_theme_dependency(
widget,
theme_js = c("light.js", "patterns.js", "dark.js", "chalk.js")
)
widget |
An htmlwidget. |
theme_js |
A character indicating the JS file dependency. |
Return the updated htmlwidget.
## Not run:
library(pipeR)
amPlot(1:10, theme = "dark") %>>% plot() %>>% add_theme_dependency("light.js")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.