v_labs | R Documentation |
Set chart title and subtitle
v_labs(vc, title = NULL, subtitle = NULL, x = NULL, y = NULL)
vc |
An htmlwidget created with |
title |
Title for the chart. |
subtitle |
Subtitle for the chart. |
x , y |
Axes titles. |
A vchart()
htmlwidget
object.
library(vchartr)
data("mpg", package = "ggplot2")
vchart(table(Class = mpg$class), aes(Class, Freq)) %>%
v_bar() %>%
v_labs(
title = "Title for the chart",
subtitle = "A subtitle to be placed under the title"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.