add_data {plotly} | R Documentation |
Add data to a plotly visualization
Description
Add data to a plotly visualization
Usage
add_data(p, data = NULL)
Arguments
p |
a plotly visualization |
data |
a data frame. |
Examples
plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
[Package plotly version 4.10.4 Index]