v_specs_colors {vchartr} | R Documentation |
Set color(s) for chart
Description
Set color(s) for chart
Usage
v_specs_colors(vc, ...)
Arguments
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 |
Value
A vchart()
htmlwidget
object.
Examples
library(vchartr)
data("mpg", package = "ggplot2")
vchart(table(Class = mpg$class)) %>%
v_bar(aes(Class, Freq)) %>%
v_specs_colors("#8FBCBB")
[Package vchartr version 0.1.4 Index]