Learn R Programming

plotly (version 4.10.0)

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

plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)

Run the code above in your browser using DataLab