Skip to content

Commit 266ef31

Browse files
committed
Merge branch 'fix-text-with-size-parameter' of https://github.com/ropensci/plotly into fix-text-with-size-parameter
2 parents 897a446 + a7aa339 commit 266ef31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/trace_generation.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@ geom2trace <- list(
541541
mode="markers",
542542
marker=paramORdefault(params, aes2marker, marker.defaults))
543543
if("size" %in% names(data)){
544-
L$text <- paste("size:", data$size)
544+
if(!("text" %in% names(data))) {
545+
L$text <- paste("size:", data$size)
546+
}
545547
L$marker$sizeref <- default.marker.sizeref
546548
# Make sure sizes are passed as a list even when there is only one element.
547549
s <- data$size

0 commit comments

Comments
 (0)