Description Usage Arguments Examples
Wraps a widget for the Papaya JavaScript library
1 2 3 4 5 6 7 8 9 10 11 12 13 |
img |
Vector of character file names or list of |
elementId |
ID for the element in the DOM |
width |
Width of the widget |
height |
height of the widget |
options |
to pass to papaya widget. Should be a list with
the same number of elements as images passed in. Options can
be generated using |
sync_view |
should the view be synced to other Papaya viewers? |
hide_toolbar |
Hide the toolbar for this viewer? |
hide_controls |
Hide the controls (increment) for this viewer? |
orthogonal |
Should an orthogonal view be displayed ( |
interpolation |
Should smoothing/interpolation be done in the viewer?
This can be overridden if individual image options set |
title |
the title for the overlay itself |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | papaya(interpolation = TRUE)
papaya(interpolation = FALSE)
img = kirby21.t1::get_t1_filenames()[1]
papaya(img, options = papayaOptions(min = 0, max = 8e5))
papaya(c(img, img),
options = list(papayaOptions(alpha = 0.5),
papayaOptions(alpha = 0.5, lut = "Red Overlay"))
)
## Not run:
papaya(img, options = papayaOptions(min = 0, max = 8e5))
papaya(c(img, img),
options = list(papayaOptions(alpha = 0.5),
papayaOptions(alpha = 0.5, lut = "Red Overlay"))
)
nii = neurobase::readnii(img)
nii = nii < 3e5 & nii > 1e5
papaya(list(img, nii), options = list(list(), papayaOptions(interpolation = FALSE)))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.