Creates an interactive 3D viewer for MRI slices.
1 2 3 4 5 6 7 | brainsprite(sprites, spriteHeight = 233, spriteWidth = 189,
inputId = tempfile("id") %>% basename, spriteID = tempfile("id")
%>% basename, flagCoordinates = FALSE, origin = c(0, 0, 0),
fontColor = "#FFFFFF", background = "#000000", overlay = NULL,
overlayHeight = NULL, overlayWidth = NULL,
overlayID = tempfile("id") %>% basename, overlayOpacity = 0.5,
height = NULL, width = NULL)
|
sprites |
File path for the spries |
spriteHeight |
Height of the brain sprite tiles |
spriteWidth |
Width of the brain sprite tiles |
inputId |
Input ID for use in shiny applications |
spriteID |
Id for the sprite image |
flagCoordinates |
Show coordinates of the clicked position |
origin |
Which voxel has the coordinates 0,0,0 |
fontColor |
Color of the text |
background |
Background color |
overlay |
File path for an optional overlay image |
overlayHeight |
Height of the overlay sprite tiles |
overlayWidth |
Width of the overlay sprite tiles |
overlayID |
Id for the overlay image |
overlayOpacity |
Opacity of the overlay image |
height |
Height of the visualization |
width |
Width of the visualization |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.