Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subplot should support non 2D-cartesian charts #711

Open
cpsievert opened this issue Sep 8, 2016 · 1 comment
Open

subplot should support non 2D-cartesian charts #711

cpsievert opened this issue Sep 8, 2016 · 1 comment
Labels

Comments

@cpsievert
Copy link
Contributor

@cpsievert cpsievert commented Sep 8, 2016

subplot(plot_ly(z = ~volcano), plot_ly(z = ~volcano, type = "surface"))
@cpsievert
Copy link
Contributor Author

@cpsievert cpsievert commented May 26, 2018

More generally, subplot() should someday grow to support non 2D-cartesian charts, but this would likely need to be done on a case by case basis

trs <- names(Schema$traces)
axes <- lapply(trs, function(x) grep("^[a-z]axis$", names(Schema$traces[[x]]$attributes), value = TRUE))
trs[lengths(axes) == 0]
 [1] "pie"            "scatterternary" "scatter3d"      "surface"       
 [5] "mesh3d"         "cone"           "scattergeo"     "choropleth"    
 [9] "splom"          "parcoords"      "scattermapbox"  "sankey"        
[13] "table"          "scatterpolar"   "scatterpolargl" "area"  
@cpsievert cpsievert changed the title subplot should handle 3D scene objects subplot should support non 2D-cartesian charts May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.