v_specs_colors | R Documentation |
Set color(s) for chart
v_specs_colors(vc, ...)
vc |
An htmlwidget created with |
... |
Colors options, can be a single color code, a vector of colors to use or a list with more options.
For |
A vchart()
htmlwidget
object.
library(vchartr)
data("mpg", package = "ggplot2")
vchart(table(Class = mpg$class)) %>%
v_bar(aes(Class, Freq)) %>%
v_specs_colors("#8FBCBB")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.