René's URL Explorer Experiment


Title: problem in get_domains(nPanels, nRows, margins) in ggplotly.R · Issue #1628 · plotly/plotly.R · GitHub

Open Graph Title: problem in get_domains(nPanels, nRows, margins) in ggplotly.R · Issue #1628 · plotly/plotly.R

X Title: problem in get_domains(nPanels, nRows, margins) in ggplotly.R · Issue #1628 · plotly/plotly.R

Description: I encountered a strange error recently: plot2 <- plot + facet_wrap( ~ group, ncol=2) p <- ggplotly(plot2,tooltip = c("x","y","label")) Error in get_domains(nPanels, nRows, margins) : The sum of the widths and heights arguments must be le...

Open Graph Description: I encountered a strange error recently: plot2 <- plot + facet_wrap( ~ group, ncol=2) p <- ggplotly(plot2,tooltip = c("x","y","label")) Error in get_domains(nPanels, nRows, margins) : The sum of the...

X Description: I encountered a strange error recently: plot2 <- plot + facet_wrap( ~ group, ncol=2) p <- ggplotly(plot2,tooltip = c("x","y","label")) Error in get_domains(nPane...

Opengraph URL: https://github.com/plotly/plotly.R/issues/1628

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"problem in get_domains(nPanels, nRows, margins) in ggplotly.R","articleBody":"I encountered a strange error recently:\r\n```\r\nplot2 \u003c- plot + facet_wrap( ~ group, ncol=2)\r\np \u003c- ggplotly(plot2,tooltip = c(\"x\",\"y\",\"label\"))\r\nError in get_domains(nPanels, nRows, margins) :  The sum of the widths and heights arguments must be less than 1\r\n```\r\nMy ncol = 2 in a facet wrap ggplot, and ncol = 11. \r\n\r\n```\r\nget_domains \u003c- function(nplots = nPanels, nrows = nRows, margins = margins, \r\n                          widths = NULL, heights = NULL) {\r\n    if (length(margins) == 1) margins \u003c- rep(margins, 4)\r\n    if (length(margins) != 4) stop(\"margins must be length 1 or 4\", call. = FALSE)\r\n    ncols \u003c- ceiling(nplots / nrows)\r\n    widths \u003c- widths %||% rep(1 / ncols, ncols)\r\n    heights \u003c- heights %||% rep(1 / nrows, nrows)\r\n    if (length(widths) != ncols) {\r\n      stop(\"The length of the widths argument must be equal \",\r\n           \"to the number of columns\", call. = FALSE)\r\n    }\r\n    if (length(heights) != nrows) {\r\n      stop(\"The length of the heights argument is \", length(heights),\r\n           \", but the number of rows is \", nrows, call. = FALSE)\r\n    }\r\n    if (any(widths \u003c 0) | any(heights \u003c 0)) {\r\n      stop(\"The widths and heights arguments must contain positive values\")\r\n    }\r\n    if (sum(widths) > 1 | sum(heights) > 1) {\r\n      stop(\"The sum of the widths and heights arguments must be less than 1\")\r\n    }\r\n  ...\r\n  }\r\n```\r\nThe auto-sizing calculated height as in the get_domains function, but there is some issue with sum(heights)  for certain numbers:\r\n```\r\n> heights \u003c- heights %||% rep(1 / nrows, nrows)\r\n\r\n> heights\r\n [1] 0.09090909 0.09090909 0.09090909 0.09090909 0.09090909 0.09090909 0.09090909 0.09090909 0.09090909 0.09090909 0.09090909\r\n\r\n> sum(heights) > 1\r\n[1] TRUE\r\n> sum(heights)\r\n[1] 1\r\n```","author":{"url":"https://github.com/hjia222","@type":"Person","name":"hjia222"},"datePublished":"2019-09-26T15:37:24Z","url":"https://github.com/plotly/plotly.R/issues/1628"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:778990ba-6733-b0ee-faf7-ee1eab3b12cd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE374:96DDF:D509F2:10ED390:6B010070
html-safe-nonce836af6b5460f3bd1960e180cce80db9315191ccc98a090a9816548933bcb13a9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzc0Ojk2RERGOkQ1MDlGMjoxMEVEMzkwOjZCMDEwMDcwIiwidmlzaXRvcl9pZCI6IjIxODg4MzMzMzE0NzMzNTA3NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac32bd7b58ab15c088022f66f887a9ec3c77236d3255e543ddc3a4d8e2c334491a
hovercard-subject-tagissue:498965100
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.R/1628/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9971fe2997f486a3200f1dcf080b00daa1b241b9b24e30f1cc55364668aa2ca9/plotly/plotly.R/issues/1628
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9971fe2997f486a3200f1dcf080b00daa1b241b9b24e30f1cc55364668aa2ca9/plotly/plotly.R/issues/1628
og:image:altI encountered a strange error recently: plot2 <- plot + facet_wrap( ~ group, ncol=2) p <- ggplotly(plot2,tooltip = c("x","y","label")) Error in get_domains(nPanels, nRows, margins) : The sum of the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehjia222
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579179
octolytics-dimension-repository_nwoplotly/plotly.R
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579179
octolytics-dimension-repository_network_root_nwoplotly/plotly.R
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.R/issues/1628#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.R%2Fissues%2F1628
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.R%2Fissues%2F1628
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.R
Reloadhttps://github.com/plotly/plotly.R/issues/1628
Reloadhttps://github.com/plotly/plotly.R/issues/1628
Reloadhttps://github.com/plotly/plotly.R/issues/1628
plotlyhttps://github.com/plotly
plotly.Rhttps://github.com/plotly/plotly.R
Codehttps://github.com/plotly/plotly.R
Issues716 (716)https://github.com/plotly/plotly.R/issues
Pull requests47 (47)https://github.com/plotly/plotly.R/pulls
Discussionshttps://github.com/plotly/plotly.R/discussions
Actionshttps://github.com/plotly/plotly.R/actions
Projectshttps://github.com/plotly/plotly.R/projects
Wikihttps://github.com/plotly/plotly.R/wiki
Security and qualityhttps://github.com/plotly/plotly.R/security
Insightshttps://github.com/plotly/plotly.R/insights
https://github.com/plotly/plotly.R
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/1628
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/1628
#1974https://github.com/plotly/plotly.R/pull/1974
problem in get_domains(nPanels, nRows, margins) in ggplotly.Rhttps://github.com/plotly/plotly.R/issues/1628#top
#1974https://github.com/plotly/plotly.R/pull/1974
https://github.com/hjia222
hjia222https://github.com/hjia222
on Sep 26, 2019https://github.com/plotly/plotly.R/issues/1628#issue-498965100
https://github.com/hjia222
hjia222https://github.com/hjia222
on Sep 26, 2019https://github.com/plotly/plotly.R/issues/1628#issuecomment-535569228
cpsieverthttps://github.com/cpsievert
completedhttps://github.com/plotly/plotly.R/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1974https://github.com/plotly/plotly.R/pull/1974
on Jul 14, 2021https://github.com/plotly/plotly.R/issues/1628#event-5021620294
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.R/issues/1628
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/1628
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.