{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/plotly/issues/655","repository_url":"https://api.github.com/repos/ropensci/plotly","labels_url":"https://api.github.com/repos/ropensci/plotly/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/plotly/issues/655/comments","events_url":"https://api.github.com/repos/ropensci/plotly/issues/655/events","html_url":"https://github.com/ropensci/plotly/issues/655","id":167584737,"node_id":"MDU6SXNzdWUxNjc1ODQ3Mzc=","number":655,"title":"pies and subplot not working as expected","user":{"login":"timelyportfolio","id":837910,"node_id":"MDQ6VXNlcjgzNzkxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/837910?v=4","gravatar_id":"","url":"https://api.github.com/users/timelyportfolio","html_url":"https://github.com/timelyportfolio","followers_url":"https://api.github.com/users/timelyportfolio/followers","following_url":"https://api.github.com/users/timelyportfolio/following{/other_user}","gists_url":"https://api.github.com/users/timelyportfolio/gists{/gist_id}","starred_url":"https://api.github.com/users/timelyportfolio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timelyportfolio/subscriptions","organizations_url":"https://api.github.com/users/timelyportfolio/orgs","repos_url":"https://api.github.com/users/timelyportfolio/repos","events_url":"https://api.github.com/users/timelyportfolio/events{/privacy}","received_events_url":"https://api.github.com/users/timelyportfolio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T11:28:31Z","updated_at":"2018-10-08T21:51:04Z","closed_at":"2017-04-06T22:15:18Z","author_association":"COLLABORATOR","body":"Based on this StackOverflow [post](http://stackoverflow.com/questions/38582112/multiple-plotly-pie-charts-in-one-row/38588357#38588357), it seems pie charts are not working as I would expect with subplot.  I will admit though that this is my first ever attempt at pie charts in Plotly.  I did verify by inspecting DOM that both pies do exist in the examples below.\n\n```\n    # devtools::install_github('ropensci/plotly\")\n\n    library(plotly)\n    ds_r <- data.frame(labels1 = c(\"Baseline\", \"DTC\", \"Detailing\", \"Flex\"),\n                       values1 = c(63.5, 8.5, 20.6, 7.4))\n\n    ds_l <- data.frame(labels2 = c(\"Baseline\"),\n                       values2 = c(100))\n\n    p <- plot_ly(\n      ds_r, labels = ~labels1, values = ~values1, type = \"pie\", \n      showlegend = F\n    )\n\n    p2 <- plot_ly(\n      ds_l,labels = ~labels2, values = ~values2, type = \"pie\", \n      showlegend = F\n    )\n\n\n    subplot(p, p2, nrows = 1)\n```\n\n![image](https://cloud.githubusercontent.com/assets/837910/17136261/eb068108-52f9-11e6-9b9a-d646539143af.png)\n## empty axes\n\n```\n    # devtools::install_github('ropensci/plotly\")\n    # an \"empty\" plotlyjs axis for layout\n    emptyAxis <- list(\n      title = \"\", \n      zeroline = FALSE,\n      showline = FALSE, \n      showticklabels = FALSE, \n      showgrid = FALSE\n    )\n\n    p <- plot_ly(\n      ds_r, labels = ~labels1, values = ~values1, type = \"pie\", \n      showlegend = F\n    ) %>% layout(xaxis = emptyAxis, yaxis  = emptyAxis)\n\n    p2 <- plot_ly(\n      ds_l,labels = ~labels2, values = ~values2, type = \"pie\", \n      showlegend = F\n    ) %>% layout(xaxis = emptyAxis, yaxis  = emptyAxis)\n\n\n    subplot(p, p2, nrows = 1)\n```\n\n![image](https://cloud.githubusercontent.com/assets/837910/17136288/16eff5f6-52fa-11e6-91a7-bfef94ea83de.png)\n"},"comment":{"url":"https://api.github.com/repos/ropensci/plotly/issues/comments/427990789","html_url":"https://github.com/ropensci/plotly/issues/655#issuecomment-427990789","issue_url":"https://api.github.com/repos/ropensci/plotly/issues/655","id":427990789,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzk5MDc4OQ==","user":{"login":"lucymerobinson","id":23226392,"node_id":"MDQ6VXNlcjIzMjI2Mzky","avatar_url":"https://avatars3.githubusercontent.com/u/23226392?v=4","gravatar_id":"","url":"https://api.github.com/users/lucymerobinson","html_url":"https://github.com/lucymerobinson","followers_url":"https://api.github.com/users/lucymerobinson/followers","following_url":"https://api.github.com/users/lucymerobinson/following{/other_user}","gists_url":"https://api.github.com/users/lucymerobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/lucymerobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucymerobinson/subscriptions","organizations_url":"https://api.github.com/users/lucymerobinson/orgs","repos_url":"https://api.github.com/users/lucymerobinson/repos","events_url":"https://api.github.com/users/lucymerobinson/events{/privacy}","received_events_url":"https://api.github.com/users/lucymerobinson/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T21:51:04Z","updated_at":"2018-10-08T21:51:04Z","author_association":"NONE","body":"The example above still does not work for me (i.e provided the same plot as above). I also receive the following warning: Warning message:\r\n'layout' objects don't have these attributes: 'NA'\r\nValid attributes include:\r\n'font', 'title', 'titlefont', 'autosize', 'width', 'height', 'margin', 'paper_bgcolor', 'plot_bgcolor', 'separators', 'hidesources', 'showlegend', 'colorway', 'datarevision', 'template', 'clickmode', 'dragmode', 'hovermode', 'hoverdistance', 'spikedistance', 'hoverlabel', 'selectdirection', 'grid', 'calendar', 'xaxis', 'yaxis', 'ternary', 'scene', 'geo', 'mapbox', 'polar', 'radialaxis', 'angularaxis', 'direction', 'orientation', 'editType', 'legend', 'annotations', 'shapes', 'images', 'updatemenus', 'sliders', 'barmode', 'bargap', 'mapType' \r\n\r\n> sessionInfo()\r\nR version 3.5.0 (2018-04-23)\r\nPlatform: x86_64-apple-darwin15.6.0 (64-bit)\r\nRunning under: macOS High Sierra 10.13.6\r\n\r\nMatrix products: default\r\nBLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib\r\nLAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib\r\n\r\nlocale:\r\n[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8\r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] bindrcpp_0.2.2    plotly_4.8.0.9000 ggplot2_3.0.0    \r\n\r\nloaded via a namespace (and not attached):\r\n [1] Rcpp_0.12.18      later_0.7.4       pillar_1.3.0      compiler_3.5.0    git2r_0.23.0     \r\n [6] plyr_1.8.4        bindr_0.1.1       tools_3.5.0       digest_0.6.17     viridisLite_0.3.0\r\n[11] jsonlite_1.5      memoise_1.1.0     tibble_1.4.2      gtable_0.2.0      pkgconfig_2.0.2  \r\n[16] rlang_0.2.2       shiny_1.1.0       rstudioapi_0.7    crosstalk_1.0.0   curl_3.2         \r\n[21] yaml_2.2.0        stringr_1.3.1     withr_2.1.2       dplyr_0.7.6       httr_1.3.1       \r\n[26] htmlwidgets_1.3   devtools_1.13.6   grid_3.5.0        tidyselect_0.2.4  glue_1.3.0       \r\n[31] data.table_1.11.8 R6_2.2.2          reshape2_1.4.3    purrr_0.2.5       tidyr_0.8.1      \r\n[36] magrittr_1.5      promises_1.0.1    scales_1.0.0      htmltools_0.3.6   assertthat_0.2.0 \r\n[41] xtable_1.8-3      mime_0.5          colorspace_1.3-2  httpuv_1.4.5      labeling_0.3     \r\n[46] stringi_1.2.4     lazyeval_0.2.1    munsell_0.5.0     crayon_1.3.4     \r\n"}}
{"actor":{"display_login":"lucymerobinson"}}