v_specs_colors: Set color(s) for chart

View source: R/specs.R

v_specs_colorsR Documentation

Set color(s) for chart

Description

Set color(s) for chart

Usage

v_specs_colors(vc, ...)

Arguments

vc

An htmlwidget created with vchart().

...

Colors options, can be a single color code, a vector of colors to use or a list with more options. For v_colors_manual it should be a named list with data values as name and color as values.

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")


vchartr documentation built on April 12, 2025, 1:51 a.m.