Learn R Programming

toastui (version 0.4.0)

chart_labs: Chart labs

Description

Chart labs

Usage

chart_labs(.chart, title = NULL, x = NULL, y = NULL)

Value

A chart htmlwidget.

Arguments

.chart

A chart htmlwidget.

title

Text for main title.

x

Text for x-axis title.

y

Text for y-axis title.

Examples

Run this code
chart(mtcars, caes(x = mpg, y = wt), type = "scatter") %>%
  chart_labs(
    title = "Main title",
    x = "X axis",
    y = "Y axis"
  )

Run the code above in your browser using DataLab