Skip to content

Commit

Permalink
fix bad example
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Jul 13, 2016
1 parent d705371 commit 1bd9d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/add.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @export
#' @examples
#'
#' NULL %>% plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
#' plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
add_data <- function(p, data = NULL) {
if (is.null(data)) return(p)
if (!is.plotly(p)) {
Expand Down
2 changes: 1 addition & 1 deletion man/add_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1bd9d6a

Please sign in to comment.