powered by
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") )
Return the updated htmlwidget.
An htmlwidget.
A character indicating the JS file dependency.
if (FALSE) { library(pipeR) amPlot(1:10, theme = "dark") %>>% plot() %>>% add_theme_dependency("light.js") }
Run the code above in your browser using DataLab