Skip to content

Commit

Permalink
curse you cbind
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Jul 13, 2016
1 parent 1bd9d6a commit 63e0ddb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 47 deletions.
2 changes: 1 addition & 1 deletion R/layers2traces.R
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ ribbon_dat <- function(dat) {
tmp <- dat[o, ]
others <- tmp[not_used]
dat1 <- cbind(x = tmp$x, y = tmp$ymin, others)
dat1[n+1, ] <- cbind(x = tmp$x[n], y = tmp$ymin[n], others[n, ])
dat1[n+1, ] <- data.frame(x = tmp$x[n], y = tmp$ymin[n], others[n, ])
# bottom-half of ribbon
tmp2 <- dat[o2, ]
others2 <- tmp2[not_used]
Expand Down
1 change: 1 addition & 0 deletions R/plotly_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' @param id a character string or number referencing an "attribute layer".
#' @return returns a data frame
#' @examples
#' @export
#'
#' # use group_by() to define groups of visual markings
#' p <- txhousing %>%
Expand Down
46 changes: 0 additions & 46 deletions man/plotly_data.Rd

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

0 comments on commit 63e0ddb

Please sign in to comment.