Title: Missing labels when using subplot with geom_tile · Issue #599 · plotly/plotly.R · GitHub
Open Graph Title: Missing labels when using subplot with geom_tile · Issue #599 · plotly/plotly.R
X Title: Missing labels when using subplot with geom_tile · Issue #599 · plotly/plotly.R
Description: Self contained example: library(ggplot2) # If you want to draw arbitrary rectangles, use geom_tile() or geom_rect() df <- data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = factor(rep(1:5, each = 2)), w = rep(diff...
Open Graph Description: Self contained example: library(ggplot2) # If you want to draw arbitrary rectangles, use geom_tile() or geom_rect() df <- data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = ...
X Description: Self contained example: library(ggplot2) # If you want to draw arbitrary rectangles, use geom_tile() or geom_rect() df <- data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z...
Opengraph URL: https://github.com/plotly/plotly.R/issues/599
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing labels when using subplot with geom_tile","articleBody":"Self contained example:\n\n``` r\nlibrary(ggplot2)\n# If you want to draw arbitrary rectangles, use geom_tile() or geom_rect()\ndf \u003c- data.frame(\n x = rep(c(2, 5, 7, 9, 12), 2),\n y = rep(c(1, 2), each = 5),\n z = factor(rep(1:5, each = 2)),\n w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)\n)\np \u003c- ggplot(df, aes(x, y)) +\n geom_tile(aes(fill = z))\n```\n\nUsing ggplotly works fine:\n\n``` r\nlibrary(plotly)\nggplotly(p)\n```\n\n\n\nBut using subplot makes the left labels disappear:\n\n``` r\nlibrary(plotly)\nsubplot(plotly_empty(), p, nrows = 1, widths = c(.2,.8), margin = 0,\n shareX = TRUE, shareY = TRUE, titleX = FALSE, titleY = FALSE)\n```\n\n\n\nThis bug is important for heatmaply, since we get truncated labels, for example:\n\n``` r\ndevtools::install_github(\"ropensci/plotly\")\ndevtools::install_github('talgalili/heatmaply')\nlibrary(heatmaply)\nheatmaply(mtcars, k_row = 3, k_col = 2)\n```\n\n\n","author":{"url":"https://github.com/talgalili","@type":"Person","name":"talgalili"},"datePublished":"2016-05-24T04:01:18Z","url":"https://github.com/plotly/plotly.R/issues/599"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24385efb-a0ec-0716-2c33-ed23b97a0004 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FD2:63875:1513F7E:1BDE5C7:6B012A5B |
| html-safe-nonce | 4ae0029a7ad22b3568e32ab55c0f6bbcadebce5fc8dd16c6977b5689b0662ad8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkQyOjYzODc1OjE1MTNGN0U6MUJERTVDNzo2QjAxMkE1QiIsInZpc2l0b3JfaWQiOiIzOTUxMTk3MDY3NDUxMzc4MjY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1717b0e3f892d78551375ef683d42ba0f1e62ee485318ca06d91820b46d8d94c |
| hovercard-subject-tag | issue:156415336 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.R/599/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d80f171110d780728d201a33ed6f8f9971913eb3c91244dc472f4b3d96c1a68/plotly/plotly.R/issues/599 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d80f171110d780728d201a33ed6f8f9971913eb3c91244dc472f4b3d96c1a68/plotly/plotly.R/issues/599 |
| og:image:alt | Self contained example: library(ggplot2) # If you want to draw arbitrary rectangles, use geom_tile() or geom_rect() df <- data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | talgalili |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579179 |
| octolytics-dimension-repository_nwo | plotly/plotly.R |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579179 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.R |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width