Skip to content

Commit 9bd0211

Browse files
committed
fix #373
1 parent 1530880 commit 9bd0211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/trace_generation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ geom2trace <- list(
565565
# when converting ggplot2 size to plotly size, we assume size is an _area_,
566566
# but "size" for lines really means linewidth, so size is a _length_ in this case
567567
# (see aesConverters$size)
568-
params$size <- sqrt(params$size)
568+
params$size <- ifelse(params$size < 1, params$size ^ 2, sqrt(params$size))
569569
list(x=data$x,
570570
y=data$y,
571571
name=params$name,

0 commit comments

Comments
 (0)