ax_title | R Documentation |
Chart's title
ax_title(
ax,
text = NULL,
align = NULL,
margin = NULL,
offsetX = NULL,
offsetY = NULL,
floating = NULL,
style = NULL,
...
)
ax |
An |
text |
Text to display as a title of chart. |
align |
Alignment of subtitle relative to chart area. Possible Options: |
margin |
Numeric. Vertical spacing around the title text. |
offsetX |
Numeric. Sets the left offset for subtitle text. |
offsetY |
Numeric. Sets the top offset for subtitle text |
floating |
Logical. The floating option will take out the subtitle text from the chart area and make it float on top of the chart. |
style |
List with two items: |
... |
Additional parameters. |
An apexchart()
htmlwidget
object.
See https://apexcharts.com/docs/options/title/
data("economics", package = "ggplot2")
apex(
data = economics,
mapping = aes(x = date, y = uempmed),
type = "line"
) %>%
ax_title(
text = "Median duration of unemployment, in weeks"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.