Skip to content

Commit 563b0c4

Browse files
committed
Add conversion to missing geoms
1 parent 529a277 commit 563b0c4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

R/trace_generation.R

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,14 @@ geom2trace <- list(
456456
L
457457
},
458458
step=function(data, params) {
459-
list(x=data$x,
460-
y=data$y,
461-
name=params$name,
462-
type="scatter",
463-
mode="lines",
464-
line=paramORdefault(params, aes2line, line.defaults))
459+
L <- list(x=data$x,
460+
y=data$y,
461+
name=params$name,
462+
type="scatter",
463+
mode="lines",
464+
line=paramORdefault(params, aes2line, line.defaults))
465+
L$line$width <- L$line$width * 2
466+
L
465467
},
466468
tile=function(data, params) {
467469
list(x=unique(data$x),
@@ -486,6 +488,7 @@ geom2trace <- list(
486488
name=params$name,
487489
type="contour",
488490
line=paramORdefault(params, aes2line, line.defaults))
491+
L$line$width <- L$line$width * 2
489492
L$contours=list(coloring="lines")
490493
L
491494
},
@@ -504,6 +507,7 @@ geom2trace <- list(
504507
name=params$name,
505508
type="histogram2dcontour",
506509
line=paramORdefault(params, aes2line, line.defaults))
510+
L$line$width <- L$line$width * 2
507511
L$contours=list(coloring="lines")
508512
L
509513
},

0 commit comments

Comments
 (0)