We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0364cb commit 724b440Copy full SHA for 724b440
R/plotly_build.R
@@ -658,6 +658,7 @@ map_linetype <- function(traces) {
658
traceify <- function(dat, x = NULL) {
659
if (length(x) == 0) return(list(dat))
660
lvls <- if (is.factor(x)) levels(x) else unique(x)
661
+ lvls <- lvls[lvls %in% x]
662
# the order of lvls determines the order in which traces are drawn
663
# for ordered factors at least, it makes sense to draw the highest level first
664
# since that _should_ be the darkest color in a sequential pallette
0 commit comments