Description Usage Arguments Value Examples
View source: R/show_cellcontour.R
Add cell contour visualisation to a plotly graph of type mesh3d
1 | show_cellcontour(p, mesh)
|
p |
A plotly graph created with plotlyMesh(). |
mesh |
The mesh used to create this plotly graph. |
a plotly graph
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
myMesh <- readRDS(system.file("extdata",
"mgx/2013-02-12_LTi6B_dis_A_T0_cells_minW1_normalMesh_full.rds",
package = "cellviz3d"))
myCellGraph <- readRDS(system.file("extdata",
"mgx/2013-02-12_LTi6B_dis_A_T0_cells_minW1_cellGraph_full.rds",
package = "cellviz3d"))
# With a uniform mesh color:
p <- plotlyMesh(meshExample = myMesh,
meshCellcenter = meshCellcenter) %>%
layout(scene =
list(aspectmode = "data"))
show_cellcontour(p, myMesh)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.