Description Usage Arguments Value Examples
Add tensor visualisation to a plotly graph of type mesh3d
1 | show_tensors(p, cellGraph, tensor_name, scale = 1)
|
p |
A plot created with plotlyMesh() function. |
cellGraph |
A cell graph created with read_cellGraph(). |
tensor_name |
The name of the tensor variable from cell graph to visualise. |
scale |
Shorten or lengthen the line for visualisation. |
a plotly graph
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## 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_tensors(p, myCellGraph,
tensor_name = "CellAxiscurv10microns",
scale = 50)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.