File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ S3method(layout,matrix)
2727S3method(layout,plotly)
2828S3method(layout,shiny.tag.list)
2929S3method(linewidth_or_size,Geom)
30+ S3method(linewidth_or_size,default)
3031S3method(linewidth_or_size,element)
3132S3method(plotly_build,"NULL")
3233S3method(plotly_build,gg)
Original file line number Diff line number Diff line change @@ -1136,6 +1136,11 @@ linewidth_or_size.element <- function(x) {
11361136 if (" linewidth" %in% names(x )) " linewidth" else " size"
11371137}
11381138
1139+ # ' @export
1140+ linewidth_or_size.default <- function (x ) {
1141+ if (get_package_version(" ggplot2" ) > = " 3.4" ) " linewidth" else " size"
1142+ }
1143+
11391144
11401145# Convert R pch point codes to plotly "symbol" codes.
11411146pch2symbol <- function (x ) {
You can’t perform that action at this time.
0 commit comments