add_theme_dependency: Add theme dependency

add_theme_dependencyR Documentation

Add theme dependency

Description

Add the 'theme' dependency to an htmlwidget. You can only manipulate the htmlwidget if you call the method 'plot' with an rAmChart.

Usage

add_theme_dependency(
  widget,
  theme_js = c("light.js", "patterns.js", "dark.js", "chalk.js")
)

Arguments

widget

An htmlwidget.

theme_js

A character indicating the JS file dependency.

Value

Return the updated htmlwidget.

Examples

## Not run: 
library(pipeR)
amPlot(1:10, theme = "dark") %>>% plot() %>>% add_theme_dependency("light.js")

## End(Not run)


DataKnowledge/rAmCharts documentation built on Oct. 3, 2022, 5:42 a.m.