plotly (version 4.7.1)

add_data: 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

Run this code
# NOT RUN {
plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
# }

Run the code above in your browser using DataCamp Workspace