View source: R/chart-options.R
chart_labs | R Documentation |
Chart labs
chart_labs(.chart, title = NULL, x = NULL, y = NULL)
.chart |
A |
title |
Text for main title. |
x |
Text for x-axis title. |
y |
Text for y-axis title. |
A chart
htmlwidget.
chart(mtcars, caes(x = mpg, y = wt), type = "scatter") %>%
chart_labs(
title = "Main title",
x = "X axis",
y = "Y axis"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.