plainBarA <- function(data,
color = "crimson",
bgColor = "#FFFFFF",
strokeColor = "purple",
strokeWidth = 2,
barPadding = 0.1,
width = NULL,
height = NULL) {
r2d3::r2d3(
data = data,
script = system.file("d3/barcharts/barchartPlainA.js", package = "DScript"),
width = width,
height = height,
options = list(
color = color,
barPadding = barPadding,
bgColor = bgColor,
strokeColor = strokeColor,
strokeWidth = strokeWidth
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.