View source: R/chart_data_labels.R
| chart_data_labels | R Documentation |
Data labels show details about data series. S3 generic;
the default method is documented below. ChartEx charts honor a
leaner set of options.
chart_data_labels(x, ...)
## Default S3 method:
chart_data_labels(
x,
num_fmt = "General",
position = "ctr",
show_legend_key = FALSE,
show_val = FALSE,
show_cat_name = FALSE,
show_serie_name = FALSE,
show_percent = FALSE,
separator = ", ",
...
)
x |
an |
... |
arguments passed to S3 methods. |
num_fmt |
|
position |
|
show_legend_key |
show legend key if TRUE. |
show_val |
show values if TRUE. |
show_cat_name |
show categories if TRUE. |
show_serie_name |
show names of series if TRUE. |
show_percent |
show percentages if TRUE. |
separator |
separator between the label components (value, category
name, series name, etc.) when multiple components are displayed.
Default is |
An ms_chart object.
chart_labels_text(), chart_labels()
my_bc <- ms_barchart(
data = browser_data, x = "browser",
y = "value", group = "serie"
)
my_bc <- chart_data_labels(my_bc, show_val = TRUE, position = "outEnd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.