add_data | R Documentation |
Add data to a plotly visualization
add_data(p, data = NULL)
p |
a plotly visualization |
data |
a data frame. |
plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.