Skip to content

Commit 1bd9d6a

Browse files
committed
fix bad example
1 parent d705371 commit 1bd9d6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/add.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#' @export
66
#' @examples
77
#'
8-
#' NULL %>% plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
8+
#' plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
99
add_data <- function(p, data = NULL) {
1010
if (is.null(data)) return(p)
1111
if (!is.plotly(p)) {

man/add_data.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)