add_data: Add data to a plotly visualization

Description Usage Arguments Examples

View source: R/add.R

Description

Add data to a plotly visualization

Usage

1

Arguments

p

a plotly visualization

data

a data frame.

Examples

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

plotly documentation built on Feb. 13, 2020, 1:07 a.m.