add_annotations | R Documentation |
Add an annotation(s) to a plot
add_annotations(p, text = NULL, ..., data = NULL, inherit = TRUE)
p |
a plotly object |
text |
annotation text (required). |
... |
these arguments are documented at https://github.com/plotly/plotly.js/blob/master/src/components/annotations/attributes.js |
data |
a data frame. |
inherit |
inherit attributes from |
Carson Sievert
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.