Description Usage Arguments Details Value Examples
This is a special-purpose utility function for translating "user friendly" input values from Shiny app into a rotation+translation matrix. The function accounts for the ideosyncratic definition of slope (which is defined relative to a 2D plane where x=z and y=y in atlas space), rotation (which is specifically around the Inferior-Superior axis), and intercept (which is where the plane crosses the Anterior-Posterior axis when x=z=0) when creating this matrix.
1 | get_plane(slope, rotation, intercept)
|
slope |
Slope parameter from the Shiny interface |
rotation |
Rotation parameter from the Shiny interface (degrees) |
intercept |
Intercept parameter from the Shiny interface (point along AP axis) |
The function returns a list containing the normal and origin of the plane as 3D vectors.
Atlas with roi_boundary_x,y,z columns defining the plane.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.