v_specs {vchartr} | R Documentation |
Specify configuration options for a vchart()
.
Description
Specify configuration options for a vchart()
.
Usage
v_specs(vc, ..., serie_id = NULL, drop_nulls = FALSE)
Arguments
vc |
An htmlwidget created with |
... |
List of options to specify for the chart, see https://www.visactor.io/vchart/option/. |
serie_id |
Used to set or modify options for a chart where there are multiple series. You can use :
|
drop_nulls |
Drop NULL elements from the options. |
Value
A vchart()
htmlwidget
object.
Examples
library(vchartr)
data("mpg", package = "ggplot2")
vchart(table(Class = mpg$class)) %>%
v_bar(aes(Class, Freq)) %>%
v_specs(
label = list(visible = TRUE),
color = list("firebrick")
)
[Package vchartr version 0.1.4 Index]