Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ecb5edf

Browse files
Account for the fact that linewidth_or_size() could take non element/Geom input (like NULL)
1 parent 5623eec commit ecb5edf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ S3method(layout,matrix)
2727
S3method(layout,plotly)
2828
S3method(layout,shiny.tag.list)
2929
S3method(linewidth_or_size,Geom)
30+
S3method(linewidth_or_size,default)
3031
S3method(linewidth_or_size,element)
3132
S3method(plotly_build,"NULL")
3233
S3method(plotly_build,gg)

‎R/layers2traces.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
11411146
pch2symbol <- function(x) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /