Skip to content

Commit 2611b9d

Browse files
committed
Allow one to change default symbol types
1 parent 586b0e3 commit 2611b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ symbolize <- function(dat) {
360360
N <- length(dat)
361361
if (N > 8) warning("Plotly supports 8 different symbols, but you have ", N, " levels!")
362362
symbols <- c('dot', 'cross', 'diamond', 'square', 'triangle-down', 'triangle-left', 'triangle-right', 'triangle-up')
363-
sym <- symbols[seq_len(N)]
363+
sym <- dat[[1]][["symbols"]][seq_len(N)] %||% symbols[seq_len(N)]
364364
dat <- Map(function(x, y) { x$marker$symbol <- y; x }, dat, sym)
365365
dat
366366
}

0 commit comments

Comments
 (0)