addAnnotToDataLabel | R Documentation |
Adds html code to the data labels include the annotation
addAnnotToDataLabel(
data.label.text,
annotation,
tmp.dat,
prepend = FALSE,
tspan = FALSE
)
data.label.text |
A character vector containing the original data labels which is to be annotated |
annotation |
An element of the |
tmp.dat |
A slice of |
prepend |
Logical; when true, the annotation will be added to the beginning of data.label.text instead of the end. |
tspan |
Whether to use tspan instead of span. tspan is used when the annotation is directly inserted into an svg text element, whereas span is used with Plotly-drawn labels (Plotly automatically converts it to tspan). |
The modified character vector data.label.text
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.