Title: Angled Axis Titles cut off ggplotly · Issue #512 · plotly/plotly.R · GitHub
Open Graph Title: Angled Axis Titles cut off ggplotly · Issue #512 · plotly/plotly.R
X Title: Angled Axis Titles cut off ggplotly · Issue #512 · plotly/plotly.R
Description: require(ggplot2) require(plotly) randomName <- function(n) { random.string <- rep(NA, n) randomizeString <- function(x) { a <-sample(letters, 1, replace = TRUE) return(a) } return(paste(c(sapply(random.string, randomizeString, simplify =...
Open Graph Description: require(ggplot2) require(plotly) randomName <- function(n) { random.string <- rep(NA, n) randomizeString <- function(x) { a <-sample(letters, 1, replace = TRUE) return(a) } return(paste(c(sapply(ra...
X Description: require(ggplot2) require(plotly) randomName <- function(n) { random.string <- rep(NA, n) randomizeString <- function(x) { a <-sample(letters, 1, replace = TRUE) return(a) } return(paste...
Opengraph URL: https://github.com/plotly/plotly.R/issues/512
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angled Axis Titles cut off ggplotly","articleBody":"``` r\nrequire(ggplot2)\nrequire(plotly)\n\nrandomName \u003c- function(n) {\n random.string \u003c- rep(NA, n)\n randomizeString \u003c- function(x) {\n a \u003c-sample(letters, 1, replace = TRUE)\n return(a)\n }\n return(paste(c(sapply(random.string, randomizeString, simplify = TRUE)), collapse = \"\"))\n}\n\nxvar = replicate(10, randomName(15))\n\ndf1 \u003c- data.frame(x = xvar, y = xvar, z = runif(10) )\n\ng = ggplot(df1, aes(x,y,fill=z)) +\n geom_tile() +\n theme(axis.text.x = element_text(angle = 45, vjust = 1, size = 12, hjust = 1))\n\nggplotly(g)\n\n\n```\n\nResult looks like this:\n\n\nedit: I will add that 90/270 seems to be ok. It's anything that isn't 0/360 or 90/270 that seems to get cut off.\n\n``` r\n> devtools::session_info()\nSession info ---------------------------------------------------------------------------------------------------------------------------------------------\n setting value \n version R version 3.2.4 (2016-03-10)\n system x86_64, darwin13.4.0 \n ui AQUA \n language (EN) \n collate en_US.UTF-8 \n tz America/Los_Angeles \n date 2016-03-15 \n\nPackages -------------------------------------------------------------------------------------------------------------------------------------------------\n package * version date source \n assertthat 0.1 2013-12-06 CRAN (R 3.2.0) \n base64enc 0.1-3 2015-07-28 CRAN (R 3.2.0) \n colorspace 1.2-6 2015-03-11 CRAN (R 3.2.0) \n curl 0.9.6 2016-02-17 CRAN (R 3.2.3) \n DBI 0.3.1 2014-09-24 CRAN (R 3.2.0) \n devtools 1.10.0.9000 2016-02-26 Github (hadley/devtools@b6a23be) \n digest 0.6.9 2016-01-08 CRAN (R 3.2.3) \n dplyr * 0.4.3 2015-09-01 CRAN (R 3.2.0) \n ggplot2 * 2.1.0 2016-03-01 CRAN (R 3.2.4) \n git2r 0.13.1 2015-12-10 CRAN (R 3.2.3) \n gridExtra 2.2.1 2016-02-29 CRAN (R 3.2.4) \n gtable 0.2.0.9000 2016-02-26 Github (hadley/gtable@0ed36a4) \n htmltools 0.3 2015-12-29 CRAN (R 3.2.3) \n htmlwidgets 0.6.1 2016-03-07 Github (ramnathv/htmlwidgets@2e4ad57)\n httr 1.1.0 2016-01-28 CRAN (R 3.2.3) \n jsonlite 0.9.19 2015-11-28 CRAN (R 3.2.2) \n knitr 1.12.3 2016-01-22 CRAN (R 3.2.3) \n labeling 0.3 2014-08-23 CRAN (R 3.2.0) \n lazyeval 0.1.10.9000 2016-03-07 Github (hadley/lazyeval@c823611) \n lubridate * 1.3.3 2013-12-31 CRAN (R 3.2.0) \n magrittr * 1.5 2014-11-22 CRAN (R 3.2.0) \n memoise 1.0.0 2016-01-29 CRAN (R 3.2.3) \n munsell 0.4.3 2016-02-13 CRAN (R 3.2.3) \n plotly * 3.4.3 2016-03-15 Github (ropensci/plotly@061e43a) \n plyr * 1.8.3.9000 2015-10-16 Github (hadley/plyr@9d8294e) \n R6 2.1.2 2016-01-26 CRAN (R 3.2.3) \n Rcpp 0.12.3 2016-01-10 CRAN (R 3.2.3) \n readxl * 0.1.0.9000 2015-11-02 Github (hadley/readxl@7c7f66b) \n rstudioapi 0.5 2016-01-24 CRAN (R 3.2.3) \n scales 0.4.0.9000 2016-02-26 Github (hadley/scales@646b6a4) \n stringi 1.0-1 2015-10-22 CRAN (R 3.2.0) \n stringr 1.0.0 2015-04-30 CRAN (R 3.2.0) \n tidyr * 0.4.1.9000 2016-02-19 Github (hadley/tidyr@323f54e) \n viridis 0.3.4 2016-03-15 Github (sjmgarnier/viridis@694d4b8) \n withr 1.0.1 2016-02-04 CRAN (R 3.2.3) \n yaml 2.1.13 2014-06-12 CRAN (R 3.2.0) \n```\n","author":{"url":"https://github.com/bhive01","@type":"Person","name":"bhive01"},"datePublished":"2016-03-15T21:38:57Z","url":"https://github.com/plotly/plotly.R/issues/512"}
| 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:902e3141-34e6-8d70-59b3-c1ddd69e3534 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7D8:158DF1:5DACA2:7BC008:6B019FE8 |
| html-safe-nonce | 954e61945153804e64848e5551e408dba4c1047813f6568868f3c39f22a093fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0Q4OjE1OERGMTo1REFDQTI6N0JDMDA4OjZCMDE5RkU4IiwidmlzaXRvcl9pZCI6Ijc3MDM2MjQxNDE4NjUzMjg2MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9dadc43561d0da927da699ae28c58977d14908baff48771b77d6a23324f09283 |
| hovercard-subject-tag | issue:141105855 |
| 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/512/issue_layout |
| twitter:image | https://opengraph.githubassets.com/106b5ea017b53eba8db2f261514ed9178e54fdf601ef7bcee1fc40cdf11a0666/plotly/plotly.R/issues/512 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/106b5ea017b53eba8db2f261514ed9178e54fdf601ef7bcee1fc40cdf11a0666/plotly/plotly.R/issues/512 |
| og:image:alt | require(ggplot2) require(plotly) randomName <- function(n) { random.string <- rep(NA, n) randomizeString <- function(x) { a <-sample(letters, 1, replace = TRUE) return(a) } return(paste(c(sapply(ra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bhive01 |
| 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