File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ map_symbol <- function(traces) {
533
533
palette <- setNames(symbols [seq_len(N )], unique(symbol ))
534
534
for (i in which(nSymbols > 0 )) {
535
535
s <- symbolList [[i ]]
536
- symbols <- pch2symbol(if (inherits(s , " AsIs" )) s else as.character(palette [s ]))
536
+ symbols <- pch2symbol(if (inherits(s , " AsIs" )) s else as.character(palette [as.character( s ) ]))
537
537
illegalSymbols <- setdiff(symbols , validSymbols )
538
538
if (length(illegalSymbols )) {
539
539
warning(
@@ -581,7 +581,7 @@ map_linetype <- function(traces) {
581
581
palette <- setNames(linetypes [seq_len(N )], unique(linetype ))
582
582
for (i in which(nLinetypes > 0 )) {
583
583
l <- linetypeList [[i ]]
584
- dashes <- lty2dash(if (inherits(l , " AsIs" )) l else as.character(palette [l ]))
584
+ dashes <- lty2dash(if (inherits(l , " AsIs" )) l else as.character(palette [as.character( l ) ]))
585
585
illegalLinetypes <- setdiff(dashes , validLinetypes )
586
586
if (length(illegalLinetypes )) {
587
587
warning(
You can’t perform that action at this time.
0 commit comments