GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Account for the fact that linewidth_or_size() could take non element/… · plotly/plotly.R@ecb5edf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • NAMESPACE
  • R
    • layers2traces.R
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎NAMESPACE‎

Copy file name to clipboardExpand all lines: NAMESPACE
+1Lines 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)
Collapse file

‎R/layers2traces.R‎

Copy file name to clipboardExpand all lines: R/layers2traces.R
+5Lines 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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.