add_data: Add data to a plotly visualization

View source: R/add.R

add_dataR 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)


plotly documentation built on May 29, 2024, 2:23 a.m.