Title: ggplotly - axis titles still overlapping with labels when converting faceted plot · Issue #1224 · plotly/plotly.R · GitHub
Open Graph Title: ggplotly - axis titles still overlapping with labels when converting faceted plot · Issue #1224 · plotly/plotly.R
X Title: ggplotly - axis titles still overlapping with labels when converting faceted plot · Issue #1224 · plotly/plotly.R
Description: The issue with axis titles overlapping with axis labels, fixed in the latest version of plotly, appears to still be present when using ggplotly to convert a faceted ggplot. When converting an unfaceted ggplot, the new automargin=TRUE att...
Open Graph Description: The issue with axis titles overlapping with axis labels, fixed in the latest version of plotly, appears to still be present when using ggplotly to convert a faceted ggplot. When converting an unfac...
X Description: The issue with axis titles overlapping with axis labels, fixed in the latest version of plotly, appears to still be present when using ggplotly to convert a faceted ggplot. When converting an unfac...
Opengraph URL: https://github.com/plotly/plotly.R/issues/1224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ggplotly - axis titles still overlapping with labels when converting faceted plot","articleBody":"The issue with axis titles overlapping with axis labels, fixed in the latest version of plotly, appears to still be present when using ggplotly to convert a **faceted** ggplot.\r\n\r\nWhen converting an unfaceted ggplot, the new `automargin=TRUE` attribute works perfectly:\r\n\r\n```r\r\nmpg_plot \u003c- mpg %>%\r\n ggplot(aes(x = cyl, fill = trans)) +\r\n geom_bar() \r\n\r\nggplotly(mpg_plot) %>% \r\n layout( \r\n xaxis = list(automargin=TRUE), \r\n yaxis = list(automargin=TRUE)\r\n )\r\n```\r\n\r\nHowever, when adding a facet, the old issue of overlap between axis titles and labels persists:\r\n\r\n ```r\r\nmpg_plot_faceted \u003c- mpg_plot + facet_wrap(. ~ fl)\r\n\r\nggplotly(mpg_plot_faceted) %>% \r\n layout( \r\n xaxis = list(automargin=TRUE), \r\n yaxis = list(automargin=TRUE)\r\n )\r\n```\r\n\r\n\r\nThanks,\r\n\r\nHenry\r\n\r\nFor reference, the original plotly issue and related fix:\r\n\r\nhttps://github.com/plotly/plotly.js/issues/1504\r\nhttps://github.com/plotly/plotly.js/pull/2243\r\n","author":{"url":"https://github.com/hms1","@type":"Person","name":"hms1"},"datePublished":"2018-03-29T08:10:00Z","url":"https://github.com/plotly/plotly.R/issues/1224"}
| 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:7af8d800-2c10-5b3e-3b67-2b2077f8abca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9296:361639:CFC735:116053A:6B01006B |
| html-safe-nonce | 9ce852d709636323c4b215bd19a7a3c6c6d6f90cc40b41f997204e7ccc947b20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjk2OjM2MTYzOTpDRkM3MzU6MTE2MDUzQTo2QjAxMDA2QiIsInZpc2l0b3JfaWQiOiIxMzEyMzgyNDY2NTk3NjUwNTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 505cdb54a9bff6d719115d43aa79614e24b0971171a60eccabb2b605ae6f1d0e |
| hovercard-subject-tag | issue:309658517 |
| 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/1224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7de4f90e7baae8348224234fff0f90db83a47f1a2a44473a86c10dd0436946d/plotly/plotly.R/issues/1224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7de4f90e7baae8348224234fff0f90db83a47f1a2a44473a86c10dd0436946d/plotly/plotly.R/issues/1224 |
| og:image:alt | The issue with axis titles overlapping with axis labels, fixed in the latest version of plotly, appears to still be present when using ggplotly to convert a faceted ggplot. When converting an unfac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hms1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width