Title: Bar chart x-axis factor order wrong · Issue #242 · plotly/plotly.R · GitHub
Open Graph Title: Bar chart x-axis factor order wrong · Issue #242 · plotly/plotly.R
X Title: Bar chart x-axis factor order wrong · Issue #242 · plotly/plotly.R
Description: When I was writing tests for #241, I came across this problem where the bar chart x-axis factor level order is wrong. R code: set.seed(23049) long_items <- data.frame(cat1 = sample(x = LETTERS[1:10], size = 100, replace = TRUE), cat2 = s...
Open Graph Description: When I was writing tests for #241, I came across this problem where the bar chart x-axis factor level order is wrong. R code: set.seed(23049) long_items <- data.frame(cat1 = sample(x = LETTERS[1:10...
X Description: When I was writing tests for #241, I came across this problem where the bar chart x-axis factor level order is wrong. R code: set.seed(23049) long_items <- data.frame(cat1 = sample(x = LETTERS[1...
Opengraph URL: https://github.com/plotly/plotly.R/issues/242
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bar chart x-axis factor order wrong","articleBody":"When I was writing tests for #241, I came across this problem where the bar chart x-axis factor level order is wrong. \n\nR code:\n\n``` r\nset.seed(23049)\nlong_items \u003c- data.frame(cat1 = sample(x = LETTERS[1:10], \n size = 100, replace = TRUE),\n cat2 = sample(x = LETTERS[1:10],\n size = 100, replace = TRUE))\np \u003c- ggplot(long_items, aes(cat1, fill=cat2)) + geom_bar(position=\"dodge\")\npy$ggplotly(p)\n```\n\nggplot2 figure:\n\n\nNote the figure above has the x-axis in alphabetical order.\n\nPlotly figure (based on PR #241): https://plot.ly/~13bzhang/1365/count-vs-cat1/\n\n\nNow the x-axis is not in alphabetical order.\n\n@cpsievert @chriddyp @mkcor \n","author":{"url":"https://github.com/13bzhang","@type":"Person","name":"13bzhang"},"datePublished":"2015-07-31T10:14:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/242/plotly.R/issues/242"}
| 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:67f9d3e5-70d4-ace4-b3fe-7c66732206e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA0C:22F2F5:3B3DE2:4D71E9:6A5B22B3 |
| html-safe-nonce | baf2ff5cfb1190a23190a387d717699d04d0c3ee2b838d77cfaad4e2f27be356 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTBDOjIyRjJGNTozQjNERTI6NEQ3MUU5OjZBNUIyMkIzIiwidmlzaXRvcl9pZCI6IjE3NzM5NjE5MjMyODMwNjc1NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d5c4117884fc4d73fc12d797da7bf5dc41fd7f9195dc509ce2c3df2d7f20175e |
| hovercard-subject-tag | issue:98359861 |
| 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/242/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b79c2be7211b5ac51f3f6b97be2987204746c37644a9d2ba133f6ba98a197cb7/plotly/plotly.R/issues/242 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b79c2be7211b5ac51f3f6b97be2987204746c37644a9d2ba133f6ba98a197cb7/plotly/plotly.R/issues/242 |
| og:image:alt | When I was writing tests for #241, I came across this problem where the bar chart x-axis factor level order is wrong. R code: set.seed(23049) long_items <- data.frame(cat1 = sample(x = LETTERS[1:10... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 13bzhang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width