Skip to content

Commit bfeb38b

Browse files
committed
fix definition of split vars
1 parent 042a6e2 commit bfeb38b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/plotly_build.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ plotly_build.plotly <- function(p) {
163163
isAsIs <- vapply(builtData, function(x) inherits(x, "AsIs"), logical(1))
164164
isDiscrete <- vapply(builtData, is.discrete, logical(1))
165165
# note: can only have one linetype per trace
166-
isSplit <- names(builtData) %in% "split"
167-
names(builtData) %in% "linetype" |
166+
isSplit <- names(builtData) %in% c("split", "linetype") |
168167
!isAsIs & isDiscrete & names(builtData) %in% c("symbol", "color")
169168
if (any(isSplit)) {
170169
paste2 <- function(x, y) if (identical(x, y)) x else paste(x, y, sep = "<br />")

0 commit comments

Comments
 (0)