René's URL Explorer Experiment


Title: ggplotly() is unable to merge legend entries across layers · Issue #2010 · plotly/plotly.R · GitHub

Open Graph Title: ggplotly() is unable to merge legend entries across layers · Issue #2010 · plotly/plotly.R

X Title: ggplotly() is unable to merge legend entries across layers · Issue #2010 · plotly/plotly.R

Description: Thanks for an amazing package! The mapping between plotly and ggplot is particularly impressive and very powerful! However, ggplotly fails to reproduce the appropriate legends generated by ggplot in non-trivial facet_wrap cases. After di...

Open Graph Description: Thanks for an amazing package! The mapping between plotly and ggplot is particularly impressive and very powerful! However, ggplotly fails to reproduce the appropriate legends generated by ggplot i...

X Description: Thanks for an amazing package! The mapping between plotly and ggplot is particularly impressive and very powerful! However, ggplotly fails to reproduce the appropriate legends generated by ggplot i...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ggplotly() is unable to merge legend entries across layers","articleBody":"Thanks for an amazing package!  The mapping between plotly and ggplot is particularly impressive and very powerful!\r\n\r\nHowever, ggplotly fails to reproduce the appropriate legends generated by ggplot in non-trivial facet_wrap cases.  After discussion [on stackoverflow](https://stackoverflow.com/questions/69289623/avoid-legend-duplication-in-plotly-conversion-from-ggplot-with-facet-wrap) some of this behavior appears to be a bug.  \r\n\r\nConsider the following minimal reprex:\r\n\r\n```r\r\nlibrary(plotly)\r\nlibrary(ggplot2)\r\n\r\np \u003c- mpg %>% \r\n  ggplot(aes(year)) +\r\n  geom_ribbon(aes(ymin=cty, ymax=hwy, fill = manufacturer), alpha=0.2) + \r\n  geom_line(aes(y = hwy, col=manufacturer))  +\r\n  facet_wrap(~class)\r\np\r\nplotly::ggplotly(p)\r\n```\r\n\r\nNote that (a) we get too many plotly legend entries, duplicating the legend for each facet, due to `legendgroup` not being correctly handled.  Also note (b) the legends we do and don't get depend on the order (do we do `geom_ribbon` first or `geom_line` first).  The bug does not appear if we have only one geom, and the missing legends continue as we add more geoms.  \r\n\r\n\r\nPerhaps not related -- but the interactive zoom options in faceted plots are not entirely intuitive either, i.e. it's not possible to zoom the whole window on a single facet plot.  (Perhaps the take home is that it might be better to render facet plots as more independent objects in plotly)?  \r\n \r\n","author":{"url":"https://github.com/cboettig","@type":"Person","name":"cboettig"},"datePublished":"2021-09-24T22:38:22Z","url":"https://github.com/plotly/plotly.R/issues/2010"}

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:5bd29c8f-38bc-588a-2ab6-303cda41cf9a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B60:B1B84:262BC7:307905:6B00FFB5
html-safe-nonce569c36420d0768a2ac42c8d80077d4a47c504f37d1a64f9a8daf83f5d7c68518
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjYwOkIxQjg0OjI2MkJDNzozMDc5MDU6NkIwMEZGQjUiLCJ2aXNpdG9yX2lkIjoiNzk1MjcwNjc0NTgxMjQ1MTI1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccd3ba646876e16dfdf274467f3f6d5377011d7652a69fc590c47dfa10fad317e
hovercard-subject-tagissue:1006870204
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/2010/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2b0c138b7c66653769dc078e7ac1dbb07b28f7ea0e497cee0f37f0394b06dbfc/plotly/plotly.R/issues/2010
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2b0c138b7c66653769dc078e7ac1dbb07b28f7ea0e497cee0f37f0394b06dbfc/plotly/plotly.R/issues/2010
og:image:altThanks for an amazing package! The mapping between plotly and ggplot is particularly impressive and very powerful! However, ggplotly fails to reproduce the appropriate legends generated by ggplot i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecboettig
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/2010#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.R%2Fissues%2F2010
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%2F2010
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/2010
Reloadhttps://github.com/plotly/plotly.R/issues/2010
Reloadhttps://github.com/plotly/plotly.R/issues/2010
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/2010
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/2010
ggplotly() is unable to merge legend entries across layershttps://github.com/plotly/plotly.R/issues/2010#top
ggplotlyhttps://github.com/plotly/plotly.R/issues?q=state%3Aopen%20label%3A%22ggplotly%22
https://github.com/cboettig
cboettighttps://github.com/cboettig
on Sep 24, 2021https://github.com/plotly/plotly.R/issues/2010#issue-1006870204
on stackoverflowhttps://stackoverflow.com/questions/69289623/avoid-legend-duplication-in-plotly-conversion-from-ggplot-with-facet-wrap
https://github.com/cpsievert
cpsieverthttps://github.com/cpsievert
on Nov 2, 2021https://github.com/plotly/plotly.R/issues/2010#issuecomment-957997316
#2067https://github.com/plotly/plotly.R/pull/2067
cpsieverthttps://github.com/cpsievert
on Nov 2, 2021https://github.com/plotly/plotly.R/issues/2010#event-5557317623
cpsieverthttps://github.com/cpsievert
ggplotlyhttps://github.com/plotly/plotly.R/issues?q=state%3Aopen%20label%3A%22ggplotly%22
on Nov 2, 2021https://github.com/plotly/plotly.R/issues/2010#event-5557319496
https://github.com/elcortegano
elcorteganohttps://github.com/elcortegano
on Dec 12, 2021https://github.com/plotly/plotly.R/issues/2010#issuecomment-991989247
#2043https://github.com/plotly/plotly.R/issues/2043
https://github.com/TheRocinante-lab
TheRocinante-labhttps://github.com/TheRocinante-lab
on Jul 23, 2022https://github.com/plotly/plotly.R/issues/2010#issuecomment-1193146874
novicahttps://github.com/novica
on Feb 29, 2024https://github.com/plotly/plotly.R/issues/2010#event-11969704466
fix: resolves #14. note: plotly/plotly.R#2010https://github.com/NorwegianVeterinaryInstitute/laksetap/commit/2e70303d9bfb195ebadfa1dc710dc54841819e34
#14https://github.com/NorwegianVeterinaryInstitute/laksetap/issues/14
plotly/plotly.R#2010https://github.com/plotly/plotly.R/issues/2010
2e70303https://github.com/NorwegianVeterinaryInstitute/laksetap/commit/2e70303d9bfb195ebadfa1dc710dc54841819e34
https://github.com/DarioS
DarioShttps://github.com/DarioS
on Mar 12, 2024https://github.com/plotly/plotly.R/issues/2010#issuecomment-1990171097
https://private-user-images.githubusercontent.com/631218/311927498-f071d8fb-097f-4c75-b113-f5f0301a8f15.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMjc4NzMsIm5iZiI6MTc5NTIyNzU3MywicGF0aCI6Ii82MzEyMTgvMzExOTI3NDk4LWYwNzFkOGZiLTA5N2YtNGM3NS1iMTEzLWY1ZjAzMDFhOGYxNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQwMjE5MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNjRmNjlmMDM3MDM2NjE2MWM4NjcxOWIwM2U2NjBlMmI0ZmI1OWJkZDBmN2NkNTFkOGFkZTM3YzIwMDEwMWE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.1jY9gN5bGaUyIMO8ii_V4TsteuNhXV8tZJtty6RWRFY
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.R/issues/2010
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.R/issues/2010
ggplotlyhttps://github.com/plotly/plotly.R/issues?q=state%3Aopen%20label%3A%22ggplotly%22
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.