Title: Translate plotmath expressions · Issue #571 · plotly/plotly.R · GitHub
Open Graph Title: Translate plotmath expressions · Issue #571 · plotly/plotly.R
X Title: Translate plotmath expressions · Issue #571 · plotly/plotly.R
Description: I have 2 issues using function ggplotly in R: Question 1 What are the ways to keep R plotmath expressions while converting ggplot2 plots to plotly format using function ggplotly? Now the expressions are converted to [object Object] as in...
Open Graph Description: I have 2 issues using function ggplotly in R: Question 1 What are the ways to keep R plotmath expressions while converting ggplot2 plots to plotly format using function ggplotly? Now the expression...
X Description: I have 2 issues using function ggplotly in R: Question 1 What are the ways to keep R plotmath expressions while converting ggplot2 plots to plotly format using function ggplotly? Now the expression...
Opengraph URL: https://github.com/plotly/plotly.R/issues/571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Translate plotmath expressions","articleBody":"I have 2 issues using function `ggplotly` in R:\n\n---\n\n**Question 1** What are the ways to keep `R` _plotmath_ expressions while converting `ggplot2` plots to `plotly` format using function `ggplotly`?\n\nNow the expressions are converted to `[object Object]` as in this example below:\n\n```\nlibrary(ggplot2)\nlibrary(plotly)\n\nqplot(mpg, wt, data = mtcars) +\n ggtitle(expression(bar(x) == sum(frac(x[i], n), i==1, n)))\n```\n\n[](http://i.stack.imgur.com/0lA4g.jpg)\n\n```\nggplotly()\n```\n\n[](http://i.stack.imgur.com/rLoxZ.jpg)\n\n---\n\n**Question 2**\n\nHow to get rid of **double** labels in the legend of `plotly` graph and make them look like in `ggplot2 graph`? I.e. how to get `6` in stead of `(6,6)`:\n\n```\nqplot(mpg, wt, data = mtcars, colour = as.factor(cyl), fill = as.factor(cyl))\n```\n\n[](http://i.stack.imgur.com/GyMZt.jpg)\n\n```\nggplotly()\n```\n\n[](http://i.stack.imgur.com/8ABJV.jpg)\n","author":{"url":"https://github.com/GegznaV","@type":"Person","name":"GegznaV"},"datePublished":"2016-05-03T20:50:42Z","url":"https://github.com/plotly/plotly.R/issues/571"}
| 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:de4084e3-09b8-d269-56e9-2f1c18ad7214 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA58:19E4BB:13F2688:1970A1B:6B01299D |
| html-safe-nonce | dda3686c31dfc372f827d448d459f1f1ae7f1f288dc9713caed51e3e312da1da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTU4OjE5RTRCQjoxM0YyNjg4OjE5NzBBMUI6NkIwMTI5OUQiLCJ2aXNpdG9yX2lkIjoiMTQ0NzI2MTg5ODczNDExOTMyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8aa6900c2efdba8fccb4593bcafe4f2ff11ffa9f5e5dbc9942e93c264f51e9d2 |
| hovercard-subject-tag | issue:152871156 |
| 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/571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a4d5102832a5df58df828bac83727845c891223b8f98ad52046150d5093a56f/plotly/plotly.R/issues/571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a4d5102832a5df58df828bac83727845c891223b8f98ad52046150d5093a56f/plotly/plotly.R/issues/571 |
| og:image:alt | I have 2 issues using function ggplotly in R: Question 1 What are the ways to keep R plotmath expressions while converting ggplot2 plots to plotly format using function ggplotly? Now the expression... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GegznaV |
| 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