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

Comments

@cpsievert
Copy link
Collaborator

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

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
Development

No branches or pull requests

1 participant