addTextLabels | R Documentation |
Add permanent text labels to points in a plotly graph
addTextLabels(
p,
x,
y,
z,
colorby = NULL,
labels,
plot_type,
show_labels = TRUE
)
p |
Previously generated plotly object |
x |
Vector of numeric x values |
y |
Vector of numeric y values |
z |
Optional vector of numeric z values |
colorby |
String vector or factor specifying value groups |
labels |
Vector of labels to apply |
plot_type |
Plot type: 'scatter' or 'scatter3d' |
show_labels |
If false, simpy pass through input plot object |
output Plotly object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.